Skip to content

Commit

Permalink
Update src/spikeinterface/extractors/mcsh5extractors.py
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelgarcia authored Jul 5, 2024
1 parent 6391d43 commit 2407d2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/spikeinterface/extractors/mcsh5extractors.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def openMCSH5File(filename, stream_id):
exponent = info["Exponent"][0]
convFact = info["ConversionFactor"][0]
gain_uV = 1e6 * (convFact.astype(float) * (10.0**exponent))
offset_uV = -1e6 * (info["ADZero"].astype(float) * (10.0**exponent)) / gain_uV
offset_uV = -1e6 * (info["ADZero"].astype(float) * (10.0**exponent)) * gain_uV

nRecCh, nFrames = data.shape
channel_ids = [f"Ch{ch}" for ch in info["ChannelID"]]
Expand Down

0 comments on commit 2407d2f

Please sign in to comment.