Skip to content

Commit fba6b80

Browse files
committed
fix stream_id and rec_name
1 parent 9fe9eec commit fba6b80

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

neo/rawio/maxwellrawio.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,6 @@ def _parse_header(self):
131131
self._channel_slice = ids
132132
elif int(version) > 20160704:
133133
settings = h5file["wells"][stream_id][self.rec_name]["settings"]
134-
settings = h5file["wells"][well_name][rec_name]["settings"]
135134
sr = settings["sampling"][0]
136135
if "lsb" in settings:
137136
gain_uV = settings["lsb"][0] * 1e6
@@ -143,7 +142,7 @@ def _parse_header(self):
143142
gain = settings["gain"][0]
144143
gain_uV = 3.3 / (1024 * gain) * 1e6
145144
mapping = settings["mapping"]
146-
sigs = h5file["wells"][well_name][rec_name]["groups"]["routed"]["raw"]
145+
sigs = h5file["wells"][stream_id][self.rec_name]["groups"]["routed"]["raw"]
147146

148147
channel_ids = np.array(mapping["channel"])
149148
electrode_ids = np.array(mapping["electrode"])

0 commit comments

Comments
 (0)