SpiNNakerManchester / sPyNNaker

The SpiNNaker implementation of the PyNN neural networking language
Apache License 2.0
105 stars 44 forks source link

Db cleanup #1504

Closed Christian-B closed 1 week ago

Christian-B commented 2 weeks ago

several Db cleanups.

avoids running DDL every time file is opened. Like https://github.com/SpiNNakerManchester/SpiNNFrontEndCommon/pull/1235

move caching from each recorder a class variable in neo_buffer_database.py

recorder still gets the block from the earliest segment possible. (to get the start date)

  1. For cases where all segments have data this is one less database opening.
  2. Small cost for case where earlier segments not recording

merged public method and the private method they wrap

new find_units method to avoid calling get_recording_metadata and then throwing away a lot of data

now also supports where additional variables are added to recording at a reset

Added a test