Skip to content

Commit 2680b2c

Browse files
authored
Merge pull request #393 from alejoe91/fix-empty-shank-id-check
Fix check on empty shank ids
2 parents 46935e9 + 7ad3c2a commit 2680b2c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/probeinterface/probe.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -946,7 +946,7 @@ def from_dict(d: dict) -> "Probe":
946946
probe = Probe(ndim=d["ndim"], si_units=d["si_units"])
947947

948948
shank_ids = d.get("shank_ids", None)
949-
if shank_ids is not None and np.all(shank_ids == ""):
949+
if shank_ids is not None and np.all([s == "" for s in shank_ids]):
950950
# backward compatible hack with previous version
951951
shank_ids = None
952952

0 commit comments

Comments
 (0)