AllenInstitute / neuron_morphology

Tools for working with single-neuron morphological reconstructions
https://neuron-morphology.readthedocs.io/en/latest/
Other
19 stars 8 forks source link

fix: failing to measure diameter of nonexistent compartment #218

Open MatthewMallory opened 1 year ago

MatthewMallory commented 1 year ago

Feature calc can fail when trying to measure diameter of a compartment that doesn't exist in a morphology. Expect this to return Nan but instead was raising: statistics.StatisticsError: mean requires at least one data point