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

Update photutils and fix a couple broken tests #175

Merged
merged 2 commits into from
Oct 17, 2023

Conversation

mwcraig
Copy link
Contributor

@mwcraig mwcraig commented Oct 15, 2023

This is a pretty straightforward one. The original motivation was to simply update the minimum photutils so taht we can, down the road, pull in some features from it, but I noticed a couple floating point tests were failing locally so I fixed those too.

Copy link
Contributor

@JuanCab JuanCab left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

@@ -245,9 +245,9 @@ def test_photometry_data():
assert phot_data.camera.read_noise == 10.0 * u.electron
assert phot_data.camera.dark_current == 0.01 * u.electron / u.second
assert phot_data.camera.pixel_scale == 0.563 * u.arcsec / u.pix
assert phot_data.observatory.lat.value == 46.86678
np.testing.assert_almost_equal(phot_data.observatory.lat.value, 46.86678)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool, nice to know this function exists for checking floats. Looked over the document, seems to be used fine here (I was concerned about precision, but default precision is 7 decimal places, which is clearly enough here).

@JuanCab JuanCab merged commit e1d9e8d into feder-observatory:main Oct 17, 2023
6 checks passed
@mwcraig mwcraig deleted the update-photutils branch February 8, 2024 15:37
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

Successfully merging this pull request may close these issues.

2 participants