Skip to content

Commit

Permalink
slicing stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
DaniBodor committed Feb 5, 2024
1 parent 5cd7652 commit c4a2671
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions eitprocessing/mixins/slicing.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def select_by_time( # pylint: disable=too-many-arguments
Slice of self.
"""

if not "time" in vars(self):
if "time" not in vars(self):
raise TypeError(f"Object {self} has no time axis.")

if start_time is None and end_time is None:
Expand Down Expand Up @@ -162,7 +162,7 @@ class TimeIndexer:
Example:
```
>>> data = EITData.from_path(<path>)
>>> data = EITData.from_path(<path>, ...)
>>> tp_start = data.time[1]
>>> tp_end = data.time[4]
>>> time_slice = data.t[tp_start:tp_end]
Expand Down

0 comments on commit c4a2671

Please sign in to comment.