Skip to content

Commit

Permalink
Remove old commented code
Browse files Browse the repository at this point in the history
  • Loading branch information
djhoese committed Apr 15, 2024
1 parent 2c8a607 commit fcbd821
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions xarray/core/duck_array_ops.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,6 @@ def as_shared_dtype(scalars_or_arrays, xp=np):

arrays = [asarray(x, xp=cp) for x in scalars_or_arrays]
else:
# arrays = [asarray(x, xp=xp) for x in scalars_or_arrays]
arrays = [
x if isinstance(x, (int, float, complex)) else asarray(x, xp=xp)
for x in scalars_or_arrays
Expand All @@ -239,7 +238,6 @@ def as_shared_dtype(scalars_or_arrays, xp=np):
# Note that result_type() safely gets the dtype from dask arrays without
# evaluating them.
out_type = dtypes.result_type(*arrays)
# return [astype(x, out_type, copy=False) for x in arrays]
return [
astype(x, out_type, copy=False) if hasattr(x, "dtype") else x for x in arrays
]
Expand Down

0 comments on commit fcbd821

Please sign in to comment.