Skip to content

Commit

Permalink
Format code with ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Oct 6, 2024
1 parent efd2065 commit e34af35
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pyneon/stream.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit e34af35

Please sign in to comment.