-
Notifications
You must be signed in to change notification settings - Fork 12
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
Move Camera into the settings module #252
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #252 +/- ##
==========================================
+ Coverage 55.87% 55.90% +0.02%
==========================================
Files 24 25 +1
Lines 2960 2962 +2
==========================================
+ Hits 1654 1656 +2
Misses 1306 1306 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No concerns, I approve this.
Examples | ||
-------- | ||
>>> from astropy import units as u | ||
>>> from stellarphot.settings import Camera |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good, you caught this change (of course the tests would not pass without it).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I confirmed the functions didn't appear to change in their migration.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Confirmed Camera model didn't appear to change in migration except as needed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Confirmed tests appear to have migrated intact.
This PR doesn't change any functionality, it simply moves the
Camera
object fromcore.py
intosettings/models.py
, and moves the more generic astropy/pydantic stuff intosettings/astropy_pydantic.py
. Having all the pydantic-related stuff inone place makes a little more sense to me, and perhaps reduces (a tiny bit) the pain of updating to pydantic 2.