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

Commit 86370c1

Browse files
committed
raise
1 parent 7a589ef commit 86370c1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

bluepyopt/ephys/locations.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -526,6 +526,10 @@ def set_sec_index(self, icell=None):
526526
self.sec_index = int(np.argmax(np.linalg.norm(points, axis=1)))
527527
else:
528528
self.sec_index = int(np.argmax(points.dot(self.direction)))
529+
else:
530+
raise EPhysLocInstantiateException("Empty seclist: %s", self.seclist_name)
531+
532+
529533

530534
def instantiate(self, sim=None, icell=None):
531535
""" """

0 commit comments

Comments
 (0)