From e34af35253b5e744db8484976bf51d9e1a5b43d6 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Sun, 6 Oct 2024 23:18:50 +0000 Subject: [PATCH] Format code with ruff --- pyneon/stream.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pyneon/stream.py b/pyneon/stream.py index 96988f2..8922605 100644 --- a/pyneon/stream.py +++ b/pyneon/stream.py @@ -80,11 +80,11 @@ def sampling_freq_effective(self) -> float: def is_uniformly_sampled(self) -> bool: """Whether the stream is uniformly sampled.""" return np.allclose(self.ts_diff, self.ts_diff[0]) - + def time_to_ts(self, time: Union[Number, np.ndarray]) -> np.ndarray: """Convert time(s) in seconds to timestamp(s) in nanoseconds.""" - time - + time + def crop( self, tmin: Optional[Number] = None,