Skip to content
This repository was archived by the owner on Feb 26, 2025. It is now read-only.

Commit d02e511

Browse files
author
Tanguy Damart
committed
Added NrnSecSomaDistance class to locations
1 parent a3890c9 commit d02e511

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

bluepyopt/ephys/locations.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,7 @@ class NrnSomaDistanceCompLocation(Location, DictMixin):
259259
"""Compartment at distance from soma"""
260260

261261
SERIALIZED_FIELDS = ('name', 'comment', 'soma_distance', 'seclist_name', )
262+
max_diam = 0.0
262263

263264
def __init__(
264265
self,
@@ -298,7 +299,7 @@ def find_icomp(self, sim, iseclist):
298299

299300
comp_diam = isec(comp_x).diam
300301

301-
if comp_diam > 0.0:
302+
if comp_diam > self.max_diam:
302303
icomp = isec(comp_x)
303304

304305
if icomp is None:

0 commit comments

Comments
 (0)