jonescompneurolab / hnn-core

Simulation and optimization of neural circuits for MEG/EEG source estimates
https://jonescompneurolab.github.io/hnn-core/
BSD 3-Clause "New" or "Revised" License
53 stars 52 forks source link

pre-allocate arrays for storing continuous simulation data in network_builder.py #686

Open rythorpe opened 10 months ago

rythorpe commented 10 months ago

As #684 has demonstrated, it usually takes running a whole (really big) simulation before maxing out the memory capabilities on one's system. We could probably improve performance as well as debugging by pre-allocating data arrays in NetworkBuilder.aggregate_data(). Changing this might also help to pre-allocate certain h.Vector instantiations.