File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -284,15 +284,15 @@ def scan_files(dirname):
284284 v = meta ['imroTbl' ][c ].split (' ' )[index_imroTbl ]
285285 per_channel_gain [c ] = 1. / float (v )
286286 gain_factor = float (meta ['imAiRangeMax' ]) / 512
287- channel_gains = per_channel_gain * gain_factor * 1e6
287+ channel_gains = gain_factor / per_channel_gain * 1e6
288288 elif meta ['imDatPrb_type' ] in ('21' , '24' ) and signal_kind == 'ap' :
289289 # This wirk with NP 2.0 case with different metadata versions
290290 # https://github.com/billkarsh/SpikeGLX/blob/gh-pages/Support/Metadata_20.md#channel-entries-by-type
291291 # https://github.com/billkarsh/SpikeGLX/blob/gh-pages/Support/Metadata_20.md#imec
292292 # https://github.com/billkarsh/SpikeGLX/blob/gh-pages/Support/Metadata_30.md#imec
293293 per_channel_gain [:- 1 ] = 80.
294294 gain_factor = float (meta ['imAiRangeMax' ]) / 8192
295- channel_gains = per_channel_gain * gain_factor * 1e6
295+ channel_gains = gain_factor / per_channel_gain * 1e6
296296 else :
297297 raise NotImplementedError ('This meta file version of spikeglx'
298298 'is not implemented' )
You can’t perform that action at this time.
0 commit comments