-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
I am loading a morphology from a PlacementSet. If I use both morphology_labels to filter the PlacementSet and cache flags of the iter_morphologies function of MorphologySet, I get weird coordinates ?
from bsb import from_storage
scaffold = from_storage("my_network.hdf5")
ps = scaffold.get_placement_set("granule_cell", morphology_labels=["parallel_fiber"])
gen = ps.load_morphologies().iter_morphologies()
morpho = next(gen)
print(morpho.points[0]) # gives the correct coordinates e.g. [ 0. 0. 142.62231445]
gen = ps.load_morphologies().iter_morphologies(cache=True, hard_cache=True)
morpho = next(gen)
print(morpho.points[0]) # gives the wrong coordinates values, e.g, [ 4696282.97645517 3170459.56070053 12000536.0695043 ]
ps = scaffold.get_placement_set("granule_cell")
gen = ps.load_morphologies().iter_morphologies(cache=True, hard_cache=True)
morpho = next(gen)
print(morpho.points[0]) # gives the correct coordinates values, e.g, [ 0. 0. 0.]Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels