Skip to content

Commit 9083b05

Browse files
committed
Add ruff fixes
1 parent 7653d9d commit 9083b05

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/sdf/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ def _validate_group(group, is_root=False):
156156

157157
def _validate_dataset(ds):
158158

159-
if not type(ds.data) is np.ndarray:
159+
if type(ds.data) is not np.ndarray:
160160
return ['Dataset.data must be a numpy.ndarray']
161161

162162
elif ds.data.size < 1:

src/sdf/examples/plot_dymola_result.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import sdf
2-
from sdf.plot.plot_time_series import plot_time_series
32
import matplotlib.pyplot as plt
43

54

0 commit comments

Comments
 (0)