Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Ahmad Reza Cheraghi
swarm-sim
Commits
f8fdde9f
Commit
f8fdde9f
authored
Sep 18, 2019
by
Ahmad Reza
Browse files
the global variable particle_counter has been deleted in particle.py
parent
4c7aec6a
Changes
1
Show whitespace changes
Inline
Side-by-side
lib/particle.py
View file @
f8fdde9f
...
...
@@ -13,12 +13,10 @@ import logging, math
from
lib
import
csv_generator
,
matter
from
lib.swarm_sim_header
import
*
particle_counter
=
0
class
Particle
(
matter
.
Matter
):
"""In the classe marker all the methods for the characterstic of a marker is included"""
def
__init__
(
self
,
world
,
x
,
y
,
color
=
black
,
alpha
=
1
,
particle_counter
=
particle_counter
):
def
__init__
(
self
,
world
,
x
,
y
,
color
=
black
,
alpha
=
1
,
particle_counter
=
0
):
"""Initializing the marker constructor"""
super
().
__init__
(
world
,
(
x
,
y
),
color
,
alpha
,
type
=
"particle"
,
mm_size
=
world
.
config_data
.
particle_mm_size
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment