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 58b4ef7 commit 7b1074bCopy full SHA for 7b1074b
neo/rawio/spikeglxrawio.py
@@ -408,7 +408,10 @@ def extract_stream_info(meta_file, meta):
408
# https://github.com/billkarsh/SpikeGLX/blob/15ec8898e17829f9f08c226bf04f46281f106e5f/Markdown/Metadata_30.md#imec
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.
+ if 'imChan0apGain' in meta:
412
+ per_channel_gain[:-1] = 1 / float(meta['imChan0apGain'])
413
+ else:
414
+ per_channel_gain[:-1] = 1 / 80.
415
max_int = int(meta['imMaxInt']) if 'imMaxInt' in meta else 8192
416
gain_factor = float(meta['imAiRangeMax']) / max_int
417
channel_gains = gain_factor * per_channel_gain * 1e6
0 commit comments