Skip to content

Commit

Permalink
tests are passing
Browse files Browse the repository at this point in the history
  • Loading branch information
h-mayorquin committed Jun 28, 2024
1 parent 62485d5 commit bf3cc4b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/spikeinterface/preprocessing/scale.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,13 @@ def __init__(self, recording: BaseRecording):
error_msg = "Recording must have gains and offsets set to be scaled to µV"
raise RuntimeError(error_msg)

self.set_channel_gains(gains=1.0)
self.set_channel_offsets(offsets=0.0)

gain = recording.get_channel_gains()[None, :]
offset = recording.get_channel_offsets()[None, :]
for parent_segment in recording._recording_segments:
rec_segment = ScaleRecordingSegment(parent_segment, gain, offset, self._dtype)
rec_segment = ScaleRecordingSegment(parent_segment, gain, offset, dtype)
self.add_recording_segment(rec_segment)

self._kwargs = dict(
Expand Down

0 comments on commit bf3cc4b

Please sign in to comment.