File Processing#
BrainTools file helpers handle the two kinds of files most experiments touch: model checkpoints and MATLAB data. Optional backends also read and write HDF5 with unit metadata (save_hdf5 / load_hdf5, extra braintools[hdf5]), NWB units tables and time series (braintools[nwb]), and NEO spike trains (braintools[neo]); see the API reference.
What you’ll find here#
A checkpointing tutorial covering
msgpack_save/msgpack_load, loading into a template to recover structure and types, restoringbrainstatemodels and random-number state in place,brainunitquantities,mismatch='error' | 'warn' | 'ignore'for evolving models, custom class serialization,AsyncManagerbackground writes, error handling, and a periodic-checkpoint-and-resume pattern.A MATLAB files tutorial covering
load_matfileandsave_matfile: how structs, struct arrays, cell arrays, and logicals are converted, thesqueeze_me/struct_as_recordoptions, common round-trip pitfalls, header information, and MATLAB v7.3 files.
For the full list of functions and parameters, see the API reference.