Commit db3248ed authored by Ahmad Reza Cheraghi's avatar Ahmad Reza Cheraghi
Browse files

Added self.sim.csv_round_writer.update_metrics(memory_read=1) in...

Added self.sim.csv_round_writer.update_metrics(memory_read=1) in read_memory_all so the read of the memory is getting
tracked by the csv-generator.
parent f1077c2c
...@@ -86,7 +86,7 @@ class Matter(): ...@@ -86,7 +86,7 @@ class Matter():
# if self.memory_delay == True: # if self.memory_delay == True:
# for key in self._tmp_memory: # for key in self._tmp_memory:
# if key == # if key ==
if key in self._memory: if key in self._memory:
tmp_memory = self._memory[key] tmp_memory = self._memory[key]
self.sim.csv_round_writer.update_metrics( memory_read=1) self.sim.csv_round_writer.update_metrics( memory_read=1)
if isinstance(tmp_memory, list) and len(str(tmp_memory)) == 0: if isinstance(tmp_memory, list) and len(str(tmp_memory)) == 0:
...@@ -103,7 +103,8 @@ class Matter(): ...@@ -103,7 +103,8 @@ class Matter():
:return: The founded memory; None: When nothing is written based on the keywoard :return: The founded memory; None: When nothing is written based on the keywoard
""" """
if self._memory != None : if self._memory != None :
return self._memory self.sim.csv_round_writer.update_metrics(memory_read=1)
return self._memory
else: else:
return None return None
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment