Skip to content

Commit bbd39c7

Browse files
committed
revert unneeded condition
1 parent be45496 commit bbd39c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

linopy/common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ def as_dataarray(
254254
arr = pandas_to_dataarray(arr, coords=coords, dims=dims, **kwargs)
255255
elif isinstance(arr, np.ndarray):
256256
arr = numpy_to_dataarray(arr, coords=coords, dims=dims, **kwargs)
257-
elif isinstance(arr, (np.number, np.ndarray, int, float, str, bool, list)):
257+
elif isinstance(arr, (np.number, int, float, str, bool, list)):
258258
arr = DataArray(arr, coords=coords, dims=dims, **kwargs)
259259

260260
elif not isinstance(arr, DataArray):

0 commit comments

Comments
 (0)