Skip to content

Commit

Permalink
Update _manipulation_functions.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Illviljan committed Sep 21, 2024
1 parent 1173cc0 commit 8a5a041
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 @@ -264,7 +264,7 @@ def reshape(
xp = _get_data_namespace(x)
_data = xp.reshape(x._data, shape, copy=copy)

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

0 comments on commit 8a5a041

Please sign in to comment.