BlueBrain / MorphIO

A python and C++ library for reading and writing neuronal morphologies
https://morphio.readthedocs.io
Apache License 2.0
27 stars 22 forks source link

Dendritic spine: Some class members marked private on C++ side can be access on Python side #341

Open jacquemi-bbp opened 2 years ago

jacquemi-bbp commented 2 years ago

This issue concerns a closed PR: https://github.com/BlueBrain/MorphIO/pull/321

There should be no Mitochondria and no Endoplasmic Reticulum object attached to Dendritic Spine. But they exist because the DendriticSpine class derived from the Morphology class. So they are marked private on c++ implementation so one cannot access them. The problem is that in Python one can access these members.

eleftherioszisis commented 2 years ago

Given that in biology smooth endoplasmic reticulum and mitochondria are present in dendritic spines, it makes sense that these objects are accessible from the spine morphology, doesn't it?