We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 46935e9 commit 7ad3c2aCopy full SHA for 7ad3c2a
src/probeinterface/probe.py
@@ -946,7 +946,7 @@ def from_dict(d: dict) -> "Probe":
946
probe = Probe(ndim=d["ndim"], si_units=d["si_units"])
947
948
shank_ids = d.get("shank_ids", None)
949
- if shank_ids is not None and np.all(shank_ids == ""):
+ if shank_ids is not None and np.all([s == "" for s in shank_ids]):
950
# backward compatible hack with previous version
951
shank_ids = None
952
0 commit comments