-
-
Notifications
You must be signed in to change notification settings - Fork 397
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
Feat xxx extract epic #1759
Feat xxx extract epic #1759
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1759 +/- ##
==========================================
- Coverage 63.89% 63.77% -0.12%
==========================================
Files 200 199 -1
Lines 15736 15614 -122
==========================================
- Hits 10054 9958 -96
+ Misses 5682 5656 -26
Continue to review full report at Codecov.
|
Good morning, We encountered a minor problem with the specification of this new feature. We have already prepared a fix for it. We were wondering if it would be better to push the changes to this pull request or wait until this one is closed and open a new one later. Please advise. Regards |
Add it to this PR. |
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.
The docstring needs a bit of cleanup to format correctly.
Also, if there is a real error, like "file not found", that should be raised as an exception, not logged as a warning.
Also, acronyms need to be defined. In particular, EPIC is not defined anywhere. This feature should be included in the narrative docs too ( |
Good morning, Thank your for your feedback, I believe I've fixed everything that was suggested. Please let me know if there are any additional changes you advise. Thank you |
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.
It looks like this new utility is not doing any sort of remote query, it is just extracting specific files from a local tarfile. Is that correct? If so, I suggest we refactor this to match other astroquery modules: let's move this new feature to utils.py
and have it work as a standalone. e.g., the documentation would say:
tarfilename = XMMNewton.download_data(...)
epic_images = xmm_newton.utils.extract_epic_images(tarfilename)
The prefix get_
is reserved for remote queries.
@bsipocz @ceb8 Please comment on this suggested change - are you onboard with the pattern of using utils.py
for non-remote operations? Or should this remain a method on the XMMNewton
class? Which is more intuitive?
No, if an additional query needs to be done, keep that in the main module, probably. Could you describe a little more what the intended use case is for that? Why would you need an additional file when un-taring a local file? |
In that particular case, the PPS tar file does not include the Response Matrix File (RMF) needed for the analysis of the spectral products. I'm not sure as to the reason why they did not include this file there but the only way to retrieve the appropriate RMF is to download it from an FTP server. |
Good morning @keflavich Are there any updates regarding the suggestion of moving this feature to Thank you |
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.
@keflavich - I do a final check and rebase, there are plenty of unrelated commits present. |
…. Issue: NXSAPCR-922
Co-authored-by: Adam Ginsburg <keflavich@gmail.com>
… raising. Issue: NXSAPCR-922
Co-authored-by: Adam Ginsburg <keflavich@gmail.com>
611ad34
to
e6fb9f6
Compare
I've cleaned up the commit history and rebased, once travis passed this can be merged, after adding a changelog. |
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've added the changelog to get it merged
Thanks @lvalerom! |
This a new feature in the XMM Newton module that allows to extract the EPIC images for different bands and instruments from a given TAR file.