Skip to content

Commit

Permalink
fix(time_series_buffer): resolve storing nan values
Browse files Browse the repository at this point in the history
  • Loading branch information
bangxiangyong committed Apr 27, 2021
1 parent ca556b4 commit bbc1ae9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions agentMET4FOF_tutorials/buffering/metrological_buffering.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def agent_loop(self):
metrological_sine_data = self._stream.next_sample()

# Equivalent to self.buffer_store but without logging.
self.buffer.store(agent_from=self.name, data=[metrological_sine_data])
self.buffer.store(agent_from=self.name, data=metrological_sine_data)

# The actual dictionary is stored in self.buffer.buffer
self.log_info(str((self.buffer.buffer)))
Expand Down Expand Up @@ -95,7 +95,7 @@ def demonstrate_metrological_stream():

# Initialize metrologically enabled plotting agent.
monitor_agent = agent_network.add_agent(
"MonitorAgent", agentType=MetrologicalMonitorAgent
"MonitorAgent", agentType=MetrologicalMonitorAgent, buffer_size=50,
)

# Bind agents.
Expand Down

0 comments on commit bbc1ae9

Please sign in to comment.