File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -365,8 +365,8 @@ def _parse_header(self):
365365 unit_loop = enumerate (self .internal_unit_ids )
366366
367367 for unit_index , (chan_id , unit_id ) in unit_loop :
368- c = np .nonzero (dspChannelHeaders ["Channel" ] == chan_id )[0 ][0 ]
369- h = dspChannelHeaders [c ]
368+ channel_index = np .nonzero (dspChannelHeaders ["Channel" ] == chan_id )[0 ][0 ]
369+ dsp_channel_headers = dspChannelHeaders [channel_index ]
370370
371371 name = h ["Name" ].decode ("utf8" )
372372 _id = f"ch{ chan_id } #{ unit_id } "
@@ -375,11 +375,11 @@ def _parse_header(self):
375375 wf_gain = 3000.0 / (2048 * h ["Gain" ] * 1000.0 )
376376 elif 103 <= global_header ["Version" ] < 105 :
377377 wf_gain = global_header ["SpikeMaxMagnitudeMV" ] / (
378- 0.5 * 2.0 ** (global_header ["BitsPerSpikeSample" ]) * h ["Gain" ] * 1000.0
378+ 0.5 * 2.0 ** (global_header ["BitsPerSpikeSample" ]) * dsp_channel_headers ["Gain" ] * 1000.0
379379 )
380380 elif global_header ["Version" ] >= 105 :
381381 wf_gain = global_header ["SpikeMaxMagnitudeMV" ] / (
382- 0.5 * 2.0 ** (global_header ["BitsPerSpikeSample" ]) * h ["Gain" ] * global_header ["SpikePreAmpGain" ]
382+ 0.5 * 2.0 ** (global_header ["BitsPerSpikeSample" ]) * dsp_channel_headers ["Gain" ] * global_header ["SpikePreAmpGain" ]
383383 )
384384 wf_offset = 0.0
385385 wf_left_sweep = - 1 # DONT KNOWN
You can’t perform that action at this time.
0 commit comments