Skip to content

Commit

Permalink
lets try reshape again
Browse files Browse the repository at this point in the history
  • Loading branch information
Illviljan committed Sep 24, 2024
1 parent 842b289 commit 733a45a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xarray/namedarray/_array_api/_manipulation_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ def reshape(
xp = _get_data_namespace(x)
_data = xp.reshape(x._data, shape, copy=copy)

if math.prod(shape) == -1 and False:
if math.prod(shape) == -1:
# Flattening operations merges all dimensions to 1:
dims_raveled = _flatten_dims(x.dims)
dim = dims_raveled[0]
Expand Down

0 comments on commit 733a45a

Please sign in to comment.