UWB-Biocomputing / GraphSystemsAnalysis

Analysis code for understanding the activities of graph-structured systems, such as development in cultures of dissociated cortical cultures.
https://uwb-biocomputing.github.io/GraphSystemsAnalysis/
Apache License 2.0
3 stars 0 forks source link

Problem with binned spike count computation in XML output #21

Open stiber opened 1 year ago

stiber commented 1 year ago

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

stiber commented 1 year ago

We should copy this into the GraphSystemsAnalysis repo, since this computation will happen from the raw data we save.