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

Commit 6d41854

Browse files
authored
Merge pull request #377 from AurelienJaquier/master
Small fix in NrnSomaDistanceCompLocation
2 parents 831c86f + 3cad0e8 commit 6d41854

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bluepyopt/ephys/locations.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ def find_icomp(self, sim, iseclist):
292292
min_distance = min(start_distance, end_distance)
293293
max_distance = max(start_distance, end_distance)
294294

295-
if min_distance <= self.soma_distance <= end_distance:
295+
if min_distance <= self.soma_distance <= max_distance:
296296
comp_x = float(self.soma_distance - min_distance) / \
297297
(max_distance - min_distance)
298298

0 commit comments

Comments
 (0)