Skip to content

Inconsistencies in morphology loading #218

@drodarie

Description

@drodarie

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.]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions