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
$ python test_align.py
Traceback (most recent call last):
File "test_align.py", line 7, in <module>
offset_image = image_registration.tests.make_offset_extended(image, 4.76666, -12.33333333333333333333333, noise=0.1)
File "/home/davide/venvs/astroimages/lib/python3.8/site-packages/image_registration/tests/registration_testing.py", line 124, in make_offset_extended
newimage = np.real(shift.shiftnd(img, (ysh, xsh))+noise)
File "/home/davide/venvs/astroimages/lib/python3.8/site-packages/image_registration/fft_tools/shift.py", line 100, in shiftnd
freq_grid = np.sum(
File "<__array_function__ internals>", line 200, in sum
File "/home/davide/venvs/astroimages/lib/python3.8/site-packages/numpy/core/fromnumeric.py", line 2324, in sum
return _wrapreduction(a, np.add, 'sum', axis, dtype, out, keepdims=keepdims,
File "/home/davide/venvs/astroimages/lib/python3.8/site-packages/numpy/core/fromnumeric.py", line 86, in _wrapreduction
return ufunc.reduce(obj, axis, dtype, out, **passkwargs)
ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 1 dimensions. The detected shape was (2,) + inhomogeneous part.
The text was updated successfully, but these errors were encountered:
@keflavich Yes, if I install from github rather than PyPI it works correctly (as the dependencies do too). Perhaps I should rename the issue to "make a release and post it on PyPI"? 😄
Example script from the home page:
Fails with:
The text was updated successfully, but these errors were encountered: