Skip to content

Commit a3f353a

Browse files
committed
Fix(spikeglx): robust IMAX value detection from IMEC file
1 parent 0302575 commit a3f353a

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# CHANGELOG
22

3+
## v0.3.7 (2024-11-01)
4+
5+
### Fix
6+
7+
* Fi(spikeglx): robust IMAX value detection from IMEC file
8+
39
## v0.3.6 (2024-10-01)
410

511
### Chore

element_array_ephys/readers/spikeglx.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,15 +96,15 @@ def get_channel_bit_volts(self, band="ap"):
9696
dataVolts = dataInt * Vmax / Imax / gain
9797
"""
9898
vmax = float(self.apmeta.meta["imAiRangeMax"])
99+
imax = self.apmeta.meta.get("imMaxInt")
100+
imax = float(imax) if imax else IMAX[self.apmeta.probe_model]
99101

100102
if band == "ap":
101-
imax = IMAX[self.apmeta.probe_model]
102103
imroTbl_data = self.apmeta.imroTbl["data"]
103104
imroTbl_idx = 3
104105
chn_ind = self.apmeta.get_recording_channels_indices(exclude_sync=True)
105106

106107
elif band == "lf":
107-
imax = IMAX[self.lfmeta.probe_model]
108108
imroTbl_data = self.lfmeta.imroTbl["data"]
109109
imroTbl_idx = 4
110110
chn_ind = self.lfmeta.get_recording_channels_indices(exclude_sync=True)

element_array_ephys/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
"""Package metadata."""
22

3-
__version__ = "0.3.6"
3+
__version__ = "0.3.7"

0 commit comments

Comments
 (0)