dbbs-lab / bsb-core

The Brain Scaffold Builder
https://bsb.readthedocs.io
GNU General Public License v3.0
21 stars 16 forks source link

Make morphologies picklable #805

Open Helveg opened 6 months ago

Helveg commented 6 months ago

Currently morphologies can't be unpickled. It would be nice if you could. To pickle we'd probably have to add a __(g/s)etstate__ able to pack it as its full matrices and graph of branches, and then unpack, construct the branches, and connect them.