dbbs-lab / bsb-core

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

File dependencies & csv import #675

Closed Helveg closed 1 year ago

Helveg commented 1 year ago

Describe the work done

File dependencies can now be specified using config.file which create FileDependencyNodes, that can keep a URI in sync with the internal file store of the model, allowing explicit file dependencies, to be processed by pipelines and updated whenever the URI scheme determines we ought to do so. Currently supported URI schemes are file, http and https (closes #345).

A CodeDependencyNode was added that allows you to specify module.path to resolve to ./module/path.py (no __init__.py support for now) as a standalone module (so no parent package import either). A new components block was added to the config that can load any number of these code dependencies so that the components inside of them can be used without having to install any packages/plugins and user components can be loaded (closes #409, closes #398).

The Allen Structure Loader and other NRRD based nodes have all switched to the new file deps as well.

The file_link storage util has been superceded and removed, so no more "link" project settings, as all these functionalities have been replaced by better, automatic ways of achieving the same goal.

CsvImportPlacement and CsvImportConnectivity have been added (closes #650).

Several bugfixes:

Tasks