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 5d66db8 commit 98722a5Copy full SHA for 98722a5
neo/rawio/maxwellrawio.py
@@ -91,7 +91,16 @@ def _parse_header(self):
91
for stream_id in signal_streams['id']:
92
if int(version) == 20160704:
93
sr = 20000.
94
- gain_uV = h5['settings']['lsb'][0] * 1e6
+ settings = h5["settings"]
95
+ if 'lsb' in settings:
96
+ gain_uV = settings['lsb'][:][0] * 1e6
97
+ else:
98
+ if "gain" not in settings:
99
+ print("'gain' amd 'lsb' not found in settings. Setting gain to 512 (default)")
100
+ gain = 512
101
102
+ gain = settings['gain'][:][0]
103
+ gain_uV = 3.3 / (1024 * gain) * 1e6
104
sigs = h5['sig']
105
mapping = h5["mapping"]
106
ids = np.array(mapping['channel'])
0 commit comments