Skip to content

Commit

Permalink
Added 2 examples of managing networks
Browse files Browse the repository at this point in the history
  • Loading branch information
Helveg committed Jan 11, 2021
1 parent ed335cf commit d512daa
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions examples/working_with_networks/loading_existing.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Example that shows how to load a network that was previously created
from bsb.core import from_hdf5

network = from_hdf5("my_network.hdf5")
6 changes: 6 additions & 0 deletions examples/working_with_networks/reconfiguring.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Example that shows how to overwrite the configuration inside of an existing network
from bsb.output import HDF5Formatter
from bsb.config import JSONConfig

config = JSONConfig("new_config.json")
HDF5Formatter.reconfigure("my_network.hdf5", config)

0 comments on commit d512daa

Please sign in to comment.