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.
1 parent a07f3bb commit 0c10fd3Copy full SHA for 0c10fd3
1 file changed
src/probeinterface/probegroup.py
@@ -200,7 +200,10 @@ def from_numpy(arr: np.ndarray) -> "ProbeGroup":
200
probegroup = ProbeGroup()
201
for probe_index in probes_indices:
202
mask = arr["probe_index"] == probe_index
203
- probe_id = arr["probe_id"][mask][0]
+ if "probe_id" not in arr.dtype.fields:
204
+ probe_id = str(probe_index)
205
+ else:
206
+ probe_id = arr["probe_id"][mask][0]
207
probe = Probe.from_numpy(arr[mask])
208
probegroup.add_probe(probe, probe_id=probe_id)
209
0 commit comments