Skip to content

Commit

Permalink
Do not use custom probe name if same as serial number
Browse files Browse the repository at this point in the history
  • Loading branch information
alejoe91 committed Dec 6, 2023
1 parent 78c90fc commit 8a30e6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/probeinterface/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -1555,7 +1555,7 @@ def read_openephys(
"ptype": ptype,
}
# Sequentially assign probe names
if "custom_probe_name" in np_probe.attrib:
if "custom_probe_name" in np_probe.attrib and np_probe.attrib["custom_probe_name"] != probe_serial_number:
name = np_probe.attrib["custom_probe_name"]
else:
name = probe_names_used[probe_idx]
Expand Down

0 comments on commit 8a30e6d

Please sign in to comment.