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

Commit 7a589ef

Browse files
committed
>0
1 parent 5e134f4 commit 7a589ef

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
@@ -521,7 +521,7 @@ def set_sec_index(self, icell=None):
521521
for section in getattr(icell, self.seclist_name)
522522
]
523523
)
524-
if len(points):
524+
if len(points) > 0:
525525
if self.direction == 'radial':
526526
self.sec_index = int(np.argmax(np.linalg.norm(points, axis=1)))
527527
else:

0 commit comments

Comments
 (0)