david-wei / libics

GNU Lesser General Public License v3.0
0 stars 1 forks source link

Recent commit broke state_reconstruction #6

Closed jonaswinklmann closed 1 year ago

jonaswinklmann commented 1 year ago

Commit core.data.arrays.ArrayData: Add __array_function__ broke interplay with state_reconstruction.

The new function __array_function__(self, func, types, args, kwargs) throws an "AttributeError: 'list' object has no attribute 'shape'" when numpy.broadcast_arrays is cast in code cell [10] in psf+trafo_estimation.ipynb. The numpy function does indeed return a list of arrays instead of an array.

Tested using Python 3.11.5.

david-wei commented 1 year ago

Fixed in commit core.data.arrays.__array_function__: Bugfix.