Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Mar 5, 2024
1 parent bde2f7d commit 60d5ede
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ def __init__(
gains = signal_channels["gain"]
offsets = signal_channels["offset"]

if dtype.kind == "i" and np.all(gains <0) and np.all(offsets == 0):
if dtype.kind == "i" and np.all(gains < 0) and np.all(offsets == 0):
# special hack when all channel have negative gain: we put back the gain positive
# this help the end user experience
self.inverted_gain = True
Expand Down Expand Up @@ -296,7 +296,9 @@ def __init__(

nseg = self.neo_reader.segment_count(block_index=self.block_index)
for segment_index in range(nseg):
rec_segment = NeoRecordingSegment(self.neo_reader, self.block_index, segment_index, self.stream_index, self.inverted_gain)
rec_segment = NeoRecordingSegment(
self.neo_reader, self.block_index, segment_index, self.stream_index, self.inverted_gain
)
self.add_recording_segment(rec_segment)

self._kwargs.update(kwargs)
Expand Down

0 comments on commit 60d5ede

Please sign in to comment.