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
3ed2c271
Commit
3ed2c271
authored
Sep 24, 2019
by
Ahmad Reza
Browse files
Delete some unused attributes from the matter.py class.
parent
d976b7e3
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/matter.py
View file @
3ed2c271
...
...
@@ -12,13 +12,8 @@ class Matter:
self
.
coords
=
coords
self
.
color
=
color_map
[
color
]
self
.
__id
=
str
(
uuid
.
uuid4
())
self
.
memory_delay_time
=
3
self
.
memory_delay
=
True
self
.
memory_buffer
=
[]
self
.
_tmp_memory
=
[]
self
.
world
=
world
self
.
_memory
=
{}
self
.
__modified
=
False
self
.
__alpha
=
alpha
self
.
type
=
type
self
.
memory_limitation
=
world
.
config_data
.
memory_limitation
...
...
@@ -57,9 +52,6 @@ class Matter:
:return: The founded memory; None: When nothing is written based on the keywoard
"""
tmp_memory
=
None
# if self.memory_delay == True:
# for key in self._tmp_memory:
# if key ==
if
key
in
self
.
_memory
:
tmp_memory
=
self
.
_memory
[
key
]
self
.
world
.
csv_round
.
update_metrics
(
memory_read
=
1
)
...
...
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