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
Make non-FITS table file from FluxPoints overwritable #5254
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #5254 +/- ##
===========================================
+ Coverage 75.26% 94.25% +18.99%
===========================================
Files 234 234
Lines 35131 35226 +95
===========================================
+ Hits 26442 33204 +6762
+ Misses 8689 2022 -6667 ☔ 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.
Thanks @HealthyPear . This looks good. Could you maybe check why the test is not failing with the current version?
Sure. Could you point me to the test function? I am not familiar with the test suite of this project. |
Here it is:
|
I think the problem is that you are writing that file in the We should either copy the original file in |
touching a dummy file with the same name sounds good to me. |
Owee, I'm MrMeeseeks, Look at me. There seem to be a conflict, please backport manually. Here are approximate instructions:
And apply the correct labels and milestones. Congratulations — you did some good work! Hopefully your backport PR will be tested by the continuous integration and merged soon! Remember to remove the If these instructions are inaccurate, feel free to suggest an improvement. |
…4-on-v1.2.x Backport PR #5254 on branch v1.2.x (Make non-FITS table file from FluxPoints overwritable)
This cannot be backported to v1.0.x because export to non-FITS file was not available in v1.0. gammapy/gammapy/estimators/points/core.py Lines 174 to 179 in 547b342
|
Description
See #5253.
Propagated
astropy.table.Table.write()
overwrite toFluxPoints.write()
when file extension is not.fits
.This pull request closes #5253.