You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# sample_transposed[:, :, -1] = sample_transposed[:, :, -1] * 2
# ~~~~~~~~~~~~~~~~~^^^^^^^^^^
# File "h5py/_objects.pyx", line 54, in h5py._objects.with_phil.wrapper
# File "h5py/_objects.pyx", line 55, in h5py._objects.with_phil.wrapper
# File "/home/henry/Programs/miniconda3/envs/caloclouds/lib/python3.11/site-packages/h5py/_hl/dataset.py", line 997, in __setitem__
# mspace = h5s.create_simple(selection.expand_shape(mshape))
# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
# File "/home/henry/Programs/miniconda3/envs/caloclouds/lib/python3.11/site-packages/h5py/_hl/selections.py", line 264, in expand_shape
# raise TypeError("Can't broadcast %s -> %s" % (source_shape, self.array_shape)) # array shape
# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
# TypeError: Can't broadcast (100, 5) -> (100, 10)
It's not a very useful operation, as it presumably breaks the lazy loading. None the less, it probably is a bug, or at least wants a different error message.
The text was updated successfully, but these errors were encountered:
Python version 3.11.7, lazy_ops version 0.2.0.
When a dataset has been transposed, the left hand side of an assignment doesn't recognise the transpose. For example;
Gives
It's not a very useful operation, as it presumably breaks the lazy loading. None the less, it probably is a bug, or at least wants a different error message.
The text was updated successfully, but these errors were encountered: