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

Suppress NaN warnings #16

Open
wmwv opened this issue Jul 18, 2024 · 0 comments
Open

Suppress NaN warnings #16

wmwv opened this issue Jul 18, 2024 · 0 comments
Assignees

Comments

@wmwv
Copy link
Collaborator

wmwv commented Jul 18, 2024

We get NaN warnings from two things that we expect to happen:

  1. NaN regions of images:
WARNING: Input data contains unmasked non-finite values (NaN or inf), which were automatically ignored. [photutils.psf.photometry]
  1. Negative flux values converted to magnitudes:
mk_lc.py:208: RuntimeWarning: invalid value encountered in log10
  star_fit_mags = -2.5 * np.log10(xm["flux_fit"])

Add code to suppress this warnings. Either for everything or just as specific context managers.

@wmwv wmwv self-assigned this Jul 18, 2024
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

1 participant