So, the code below is basically all we save when we run a simulation and produce XML output: the binned spike counts (for 10ms bins). Of course, this only works for neural simulations. We want to go to just saving whatever the recorder is told to save. However, it might be good to preserve this computation temporarily, just as a double-check for regression testing. But it should go. Also, it does the computation in a poor way, because we should never compute the time of an event from the beginning of the simulation; just the interval between events (because simulations can be very long — too long to store in a double accurately).
So, the code below is basically all we save when we run a simulation and produce XML output: the binned spike counts (for 10ms bins). Of course, this only works for neural simulations. We want to go to just saving whatever the recorder is told to save. However, it might be good to preserve this computation temporarily, just as a double-check for regression testing. But it should go. Also, it does the computation in a poor way, because we should never compute the time of an event from the beginning of the simulation; just the interval between events (because simulations can be very long — too long to store in a
double
accurately).https://github.com/UWB-Biocomputing/Graphitti/blob/b5bd8d3298e67b620f96032cfb5c7f484345ec7e/Simulator/Recorders/XmlRecorder.cpp#L92-L96