Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

several possible bugs #19

Closed
BetaGem opened this issue Jun 1, 2024 · 2 comments
Closed

several possible bugs #19

BetaGem opened this issue Jun 1, 2024 · 2 comments

Comments

@BetaGem
Copy link

BetaGem commented Jun 1, 2024

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()".

@yun201720
Copy link

The singleSEDfit founction is no longer usable.

@aabdurrouf
Copy link
Owner

Thank you very much @BetaGem for the very helpful corrections!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants