We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 39bd1d7 commit 87f4b5dCopy full SHA for 87f4b5d
neuro_py/io/loading.py
@@ -2269,6 +2269,11 @@ def load_probe_layout(basepath: str) -> pd.DataFrame:
2269
data = sio.loadmat(filename, simplify_cells=True)
2270
x = data["session"]['extracellular']['chanCoords']['x']
2271
y = data["session"]['extracellular']['chanCoords']['y']
2272
+
2273
+ if (len(x) == 0) & (len(y) == 0):
2274
+ warnings.warn("The coordinates are empty in session.extracellular.chanCoords. Returning None - check session file")
2275
+ return None
2276
2277
electrode_groups = data["session"]["extracellular"]["electrodeGroups"]['channels']
2278
2279
# for each group in electrodeGroups
0 commit comments