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

Fix all warnings #203

Merged
merged 12 commits into from
Dec 12, 2023
Merged

Fix all warnings #203

merged 12 commits into from
Dec 12, 2023

Conversation

mwcraig
Copy link
Contributor

@mwcraig mwcraig commented Dec 11, 2023

This PR:

  • Promotes all warnings in the tests to errors.
  • Fixes a bunch of warnings. In many cases this boils down to catching warnings that we expect to happen.
  • Warnings that are generated by code we don't control are simply filtered out in the pytest settings in pyproject.toml

This used a deprecated version class from distutils, and ought to be
enforced these days by conda and/or pip anyway.
@mwcraig mwcraig added the tests Issue related to tests label Dec 11, 2023
As opposed to an array of coordinates with length 1
This will hopefully make the tests a bit more deterministic -- without it
I see some failures related to fitting a gaussian to image sources,
which I'm guessing is related to the particular set of images values in
those cases.
Turns out we were leaving some files open during tests. In addition,
every time we load a wcs during these tests we get a warning that the
number of WCS axes does not match the number of image axes, which is
on purpose -- we want a full-frame WCS but do not want to have to carry
around a full frame image in the repo.
Some of our test cases are odd and are expected to generate warnings
about the quality of the fit.
@mwcraig mwcraig merged commit 4b70f3f into feder-observatory:main Dec 12, 2023
6 checks passed
mwcraig added a commit to mwcraig/stellarphot that referenced this pull request Dec 12, 2023
These did not cleanly transfer over when I rebased on top of
feder-observatory#203
mwcraig added a commit to mwcraig/stellarphot that referenced this pull request Dec 16, 2023
These did not cleanly transfer over when I rebased on top of
feder-observatory#203
@mwcraig mwcraig deleted the fix-warnings branch February 8, 2024 15:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tests Issue related to tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant