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
Hi, I've encountered several possible bug in the image processing code. Here's a list of them:
in image_process.py, line 197, 211, 377, 390, 436, 449
The "hdu.header.update()" seems not to update the WCS correctly. I fixed it by replacing the "hdu.writeto(...)" with "fits.writeto(name_out, cutout.data, cutout.wcs.to_header(), overwrite=True)"
in image_process.py, line 107:
get_img_pixsizes() will fail if the "dir_images" parameter is provided.
in image_utils.py, line 906:
Add .astype(int) to np.zeros() or use np.full(..., 0). The "mask_region1" can't be a float array.
in image_utils.py, line 907:
"or" should be replaced with "|" or "np.logical_or()".
The text was updated successfully, but these errors were encountered:
Hi, I've encountered several possible bug in the image processing code. Here's a list of them:
in image_process.py, line 197, 211, 377, 390, 436, 449
The "hdu.header.update()" seems not to update the WCS correctly. I fixed it by replacing the "hdu.writeto(...)" with "fits.writeto(name_out, cutout.data, cutout.wcs.to_header(), overwrite=True)"
in image_process.py, line 107:
get_img_pixsizes() will fail if the "dir_images" parameter is provided.
in image_utils.py, line 906:
Add .astype(int) to np.zeros() or use np.full(..., 0). The "mask_region1" can't be a float array.
in image_utils.py, line 907:
"or" should be replaced with "|" or "np.logical_or()".
The text was updated successfully, but these errors were encountered: