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 275e70b commit 58b4ef7Copy full SHA for 58b4ef7
neo/rawio/spikeglxrawio.py
@@ -409,7 +409,8 @@ def extract_stream_info(meta_file, meta):
409
# We allow also LF streams for NP2.0 because CatGT can produce them
410
# See: https://github.com/SpikeInterface/spikeinterface/issues/1949
411
per_channel_gain[:-1] = 1 / 80.
412
- gain_factor = float(meta['imAiRangeMax']) / 8192
+ max_int = int(meta['imMaxInt']) if 'imMaxInt' in meta else 8192
413
+ gain_factor = float(meta['imAiRangeMax']) / max_int
414
channel_gains = gain_factor * per_channel_gain * 1e6
415
else:
416
raise NotImplementedError('This meta file version of spikeglx'
0 commit comments