-
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
This rearranges some of the photometry settings and adds an AperturePhotometry
class
#275
Conversation
The interactive notebooks depend on having this at the moment.
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #275 +/- ##
==========================================
+ Coverage 70.22% 70.53% +0.31%
==========================================
Files 24 24
Lines 2992 3024 +32
==========================================
+ Hits 2101 2133 +32
Misses 891 891 ☔ 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.
So far looks like a strong first step re-organizing the settings to be more clearly delineated and also to work toward the object-oriented model of photometry we talked about. Not "approving" because it is a draft, but looks like a lot of good stuff here.
docs/index.rst
Outdated
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.
Obviously this will need some more fleshing out, but I like that you are getting the documentation in place. You may want to mention for situations where the users may not be comfortable yet with the command line or Python programming, a Jupyter-notebook-based set of tools is available to configure stellarphot and run the photometry.
Also, do we want to note this is meant to be used on REDUCED images (or am I wrong here)? I don't remember any processing of flats/darks/etc, which I believe is because we were working with reduced images.
stellarphot/photometry/photometry.py
Outdated
file_or_directory : str or Path | ||
The file or directory on which to perform aperture photometry. | ||
|
||
fname : str, optional (Default: None) |
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.
Isn't fname
redundant if the value of file_or_directory
already automatically switches whether it is single image processing or multi-image processing based on it being a file or directory. Do you want to support wildcard (e.g. glob) processing of filename?
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 point about the file name!
I think for the moment maybe we stick with just a directory for multi-image but move towards being able to process anything the ccdproc ImageFileCollection can handle.
Next up will be better documentation and fleshing out the couple of widgets that still need to be done. |
@JuanCab what do you think about these two questions:
|
Unless you somehow want to leave the possibility open for other kinds of photometry to be done as single or multi-image, it seems to make sense to me to keep |
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 had to use Sublime Merge to see the changes since GitHub wasn't as clear about what changed since the last update. But the changes all look reasonable.
There are still a couple things to be resolved:
AperturePhotometry
?AperturePhotometry
even needed?Marking this as a draft for the moment, but if you get a chance to take a peek, @JuanCab, feedback would be welcome. WOn't get back to it myself until Sunday.