AllenInstitute / bmtk

Brain Modeling Toolkit
https://alleninstitute.github.io/bmtk/
BSD 3-Clause "New" or "Revised" License
265 stars 86 forks source link

Enabling to run run.sim() more than once #368

Closed shixnya closed 3 months ago

shixnya commented 3 months ago

By moving the initialization of the spike writer to 'initialize' function, it enables to run run.sim() more than once.

Without this modification, run.sim() hits the error because the temporary spike file is closed by 'finalize', but not reinitialized.