Skip to content

Commit

Permalink
flake8 error fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
allibco committed Sep 26, 2024
1 parent 1efe748 commit 187400f
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions ldcpy/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -771,9 +771,9 @@ def get_calc_label(self, calc, data, data_type):
.mean()
.data
)
if type(a1_data) == np.float64:
if isinstance(a1_data, np.float64):
pass
elif type(a1_data) == np.ndarray:
elif isinstance(a1_data, np.ndarray):
dask.array.from_array(data)
a1_data = a1_data.compute()
else:
Expand All @@ -785,9 +785,9 @@ def get_calc_label(self, calc, data, data_type):
.mean()
.data
)
if type(a1_data) == np.float64:
if isinstance(a1_data, np.float64):
pass
elif type(a1_data) == np.ndarray:
elif isinstance(a1_data, np.ndarray):
a1_data = dask.array.from_array(a1_data).compute()
else:
a1_data = a1_data.compute()
Expand Down Expand Up @@ -823,9 +823,9 @@ def get_calc_label(self, calc, data, data_type):
.mean()
.data
)
if type(a1_data) == np.float64:
if isinstance(a1_data, np.float64):
pass
elif type(a1_data) == np.ndarray:
elif isinstance(a1_data, np.ndarray):
dask.array.from_array(data)
a1_data = a1_data.compute()
else:
Expand All @@ -837,9 +837,9 @@ def get_calc_label(self, calc, data, data_type):
.mean()
.data
)
if type(a1_data) == np.float64:
if isinstance(a1_data, np.float64):
pass
elif type(a1_data) == np.ndarray:
elif isinstance(a1_data, np.ndarray):
a1_data = a1_data
else:
a1_data = a1_data.compute()
Expand All @@ -850,9 +850,9 @@ def get_calc_label(self, calc, data, data_type):
.mean()
.data
)
if type(a1_data) == np.float64:
if isinstance(a1_data, np.float64):
pass
elif type(a1_data) == np.ndarray:
elif isinstance(a1_data, np.ndarray):
dask.array.from_array(a1_data).compute()
else:
a1_data = a1_data.compute()
Expand All @@ -870,9 +870,9 @@ def get_calc_label(self, calc, data, data_type):
.mean()
.data
)
if type(a1_data) == np.float64:
if isinstance(a1_data, np.float64):
pass
elif type(a1_data) == np.ndarray:
elif isinstance(a1_data, np.ndarray):
dask.array.from_array(data)
a1_data = a1_data.compute()
else:
Expand All @@ -886,9 +886,9 @@ def get_calc_label(self, calc, data, data_type):
.mean()
.data
)
if type(a1_data) == np.float64:
if isinstance(a1_data, np.float64):
pass
elif type(a1_data) == np.ndarray:
elif isinstance(a1_data, np.ndarray):
dask.array.from_array(data)
a1_data = a1_data.compute()
else:
Expand Down

0 comments on commit 187400f

Please sign in to comment.