Skip to content

Commit

Permalink
Remove redundant slicing
Browse files Browse the repository at this point in the history
  • Loading branch information
theXYZT committed Jul 31, 2024
1 parent fce4313 commit a6a3c23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pulsarbat/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def __init__(self, z, /, *, sample_rate, start_time=None, meta=None):
f"got signal with {z.ndim} dimension(s) instead."
)

zipped = zip(z.shape[:min_ndim], self._req_shape)
zipped = zip(z.shape, self._req_shape)
if not all(x == (y or x) for x, y in zipped):
raise InvalidSignalError(
f"Signal has invalid shape. Expected {self._req_shape}, "
Expand Down

0 comments on commit a6a3c23

Please sign in to comment.