- All Implemented Interfaces:
- SimulatorListener
public class WriteToDiskSimulatorListener
extends java.lang.Object
implements SimulatorListener
A method of writing to disk values being tracked by a probe.
This class is designed to be used in cases where a simulation must run for
a long period of time, and it is likely that the amount of data being stored
will cause issues with the proper running of Nengo. By attaching a
WriteToDiskSimulatorListener to a simulator instance, progress is saved to disk
after each recordInterval.
Example usage (Python syntax):
probe_error = network.getSimulator().addProbe("error",error.X,True)
file_error = File("output/error.csv")
listener_error = WriteToDiskSimulatorListener(file_error,probe_error,0.005)
network.simulator.addSimulatorListener(listener_error)