Skip to content

Commit

Permalink
revert volume
Browse files Browse the repository at this point in the history
  • Loading branch information
rgourdine committed Mar 16, 2024
1 parent 2ac7ce9 commit 0178edb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions share/lib/python/neuron/rxd/region.py
Original file line number Diff line number Diff line change
Expand Up @@ -344,10 +344,10 @@ def __repr__(self):
def _short_repr(self):
return "Extracellular"

def volume(self, species):
def _volume(self, species):
return sum(species.nodes(self).volume)

Check warning on line 348 in share/lib/python/neuron/rxd/region.py

View check run for this annotation

Codecov / codecov/patch

share/lib/python/neuron/rxd/region.py#L348

Added line #L348 was not covered by tests

def _volume(self, index):
def volume(self, index):
"""Returns the volume of the voxel at a given index"""
if numpy.isscalar(self.alpha):
return numpy.prod(self._dx) * self.alpha
Expand Down

0 comments on commit 0178edb

Please sign in to comment.