Skip to content

Commit cf2a691

Browse files
authored
fix lines plot: fix f string and include args in conditionals (#272)
1 parent c50e564 commit cf2a691

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

echoregions/lines/lines.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -185,11 +185,11 @@ def plot(
185185
Additional arguments passed to matplotlib `plot` or `fill_between`.
186186
Useful arguments include `color`, `lw`, and `marker`.
187187
"""
188-
if not None and not (isinstance(start_time, Timestamp)):
189-
raise TypeError(f"start time is of type {type(start_time)} \
188+
if start_time is not None and not (isinstance(start_time, Timestamp)):
189+
raise TypeError(f"Start time is of type {type(start_time)}. \
190190
It must be of of type Pandas Timestamp.")
191-
if not None and not (isinstance(end_time, Timestamp)):
192-
raise TypeError(f"end time is of type {type(end_time)} \
191+
if end_time is not None and not (isinstance(end_time, Timestamp)):
192+
raise TypeError(f"End time is of type {type(end_time)}. \
193193
It must be of of type Pandas Timestamp.")
194194

195195
df = self.data

0 commit comments

Comments
 (0)