Skip to content

Commit

Permalink
Fix(test): lint long lines
Browse files Browse the repository at this point in the history
  • Loading branch information
jusjusjus committed Aug 16, 2024
1 parent 0498395 commit d0f69b1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
3 changes: 2 additions & 1 deletion mffpy/bin_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,8 @@ def scale(self) -> float:
return self._scale

def get_physical_samples(self, t0: float = 0.0,
dt: Optional[float] = None, block_slice: Optional[slice] = None,
dt: Optional[float] = None,
block_slice: Optional[slice] = None,
dtype=np.float32) -> Tuple[np.ndarray, float]:
samples, start_time = self.read_raw_samples(
t0, dt, block_slice=block_slice)
Expand Down
4 changes: 2 additions & 2 deletions mffpy/raw_bin_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ def __init__(self, filepointer: IO[bytes]):
assert not self.filepointer.closed
self.buffering: bool = False

def read_raw_samples(self, t0: float = 0.0,
dt: Optional[float] = None, block_slice: Optional[slice] = None
def read_raw_samples(self, t0: float = 0.0, dt: Optional[float] = None,
block_slice: Optional[slice] = None
) -> Tuple[np.ndarray, float]:
"""return `(channels, samples)`-array and `start_time` of data
Expand Down
3 changes: 2 additions & 1 deletion mffpy/reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,8 @@ def get_physical_samples(self, t0: float = 0.0, dt: Optional[float] = None,
}

def get_physical_samples_from_epoch(self, epoch: xml_files.Epoch,
t0: float = 0.0, dt: Optional[float] = None,
t0: float = 0.0,
dt: Optional[float] = None,
channels: Optional[List[str]] = None
) -> Dict[str,
Tuple[np.ndarray, float]]:
Expand Down

0 comments on commit d0f69b1

Please sign in to comment.