Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Immutable dataset views for readonly morphology classes #373

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

eleftherioszisis
Copy link
Contributor

Attempt addressing (#367 )

Comment on lines +117 to +118
#del points, diameters
#_assert_refcount(section, 1)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Vasculature's last section refcount is 3 instead of 1 if the points & diameters are not cleared. Very peculiar...

Comment on lines +22 to +25
(morphio.Morphology, DATA_DIR / "simple-heterogeneous-neurite.swc"),
(morphio.GlialCell, DATA_DIR / "astrocyte.h5"),
(morphio.vasculature.Vasculature, DATA_DIR / "h5/vasculature1.h5"),
(morphio.DendriticSpine, DATA_DIR / "h5/v1/simple-dendritric-spine.h5")
Copy link
Contributor Author

@eleftherioszisis eleftherioszisis Feb 2, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Am I forgetting something else here?

Copy link
Member

@adrien-berchet adrien-berchet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks so nice! 🤩

binds/python/bindings_utils.h Outdated Show resolved Hide resolved
binds/python/bindings_utils.h Outdated Show resolved Hide resolved
tests/test_readonly_views.py Outdated Show resolved Hide resolved
@eleftherioszisis eleftherioszisis changed the title [WIP] Immutable dataset views for readonly morphology classes Immutable dataset views for readonly morphology classes Mar 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants