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
@pha12kt found that find_optimal_celestial_wcs does not accept ImageHDU, PrimaryHDU. In the below examples, img is an ImageHDU object.
Failing to accept an ImageHDU object:
>>> find_optimal_celestial_wcs(img)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/reproject/mosaicking/wcs_helpers.py", line 72, in find_optimal_celestial_wcs
input_shapes = [parse_input_shape(shape) for shape in input_data]
TypeError: 'ImageHDU' object is not iterable
Failing to accept a PrimaryHDU object
>>> find_optimal_celestial_wcs(fits.PrimaryHDU(img.data, img.header))
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/reproject/mosaicking/wcs_helpers.py", line 72, in find_optimal_celestial_wcs
input_shapes = [parse_input_shape(shape) for shape in input_data]
TypeError: 'PrimaryHDU' object is not iterable
@pha12kt found that
find_optimal_celestial_wcs
does not accept ImageHDU, PrimaryHDU. In the below examples,img
is an ImageHDU object.Failing to accept an ImageHDU object:
Failing to accept a PrimaryHDU object
But it accepts a list of ImageHDU, or an HDUList
The text was updated successfully, but these errors were encountered: