We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 46935e9 + 7ad3c2a commit 2680b2cCopy full SHA for 2680b2c
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