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
3PC Fermi catalog #5058
3PC Fermi catalog #5058
Conversation
a6d3fbf
to
0d73038
Compare
8c95ca8
to
06efcef
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #5058 +/- ##
==========================================
- Coverage 75.27% 75.07% -0.20%
==========================================
Files 234 234
Lines 35148 35270 +122
==========================================
+ Hits 26458 26480 +22
- Misses 8690 8790 +100 ☔ View full report in Codecov by Sentry. |
Signed-off-by: Maxime Regeard <regeard@apc.in2p3.fr>
Signed-off-by: Maxime Regeard <regeard@apc.in2p3.fr>
Signed-off-by: Maxime Regeard <regeard@apc.in2p3.fr>
Signed-off-by: Maxime Regeard <regeard@apc.in2p3.fr>
d9a1b2b
to
3c2fea9
Compare
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 @MRegeard . This looks good.
See some inline comments.
gammapy/catalog/tests/test_fermi.py
Outdated
def test_data(self): | ||
assert_allclose(self.source.data["P0"], 0.08937108859019084) | ||
|
||
@pytest.mark.parametrize("ref", SOURCES_3PC, ids=lambda _: _["name"]) |
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.
Why is the ids
argument used for?
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 actually don't know, I follow the same testing scheme as for the other catalogs. Maybe @QRemy knows ?
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 think it loops over the sources in the list.
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 @MRegeard . This looks good to me.
Awaiting merge of #5056.
Split of PR #4699. Here is the 3PC part.