Skip to content
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

Merged
merged 11 commits into from May 16, 2024
Merged

3PC Fermi catalog #5058

merged 11 commits into from May 16, 2024

Conversation

MRegeard
Copy link
Member

Awaiting merge of #5056.

Split of PR #4699. Here is the 3PC part.

Copy link

codecov bot commented Apr 11, 2024

Codecov Report

Attention: Patch coverage is 19.54887% with 107 lines in your changes are missing coverage. Please review.

Project coverage is 75.07%. Comparing base (637570a) to head (7323951).
Report is 1 commits behind head on main.

Files Patch % Lines
gammapy/catalog/fermi.py 18.46% 106 Missing ⚠️
gammapy/catalog/core.py 66.66% 1 Missing ⚠️
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.
📢 Have feedback on the report? Share it here.

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>
Signed-off-by: Maxime Regeard <regeard@apc.in2p3.fr>
Copy link
Contributor

@registerrier registerrier left a 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/fermi.py Outdated Show resolved Hide resolved
gammapy/catalog/fermi.py Outdated Show resolved Hide resolved
gammapy/catalog/fermi.py Show resolved Hide resolved
gammapy/catalog/fermi.py Show resolved Hide resolved
gammapy/catalog/tests/test_fermi.py Outdated Show resolved Hide resolved
def test_data(self):
assert_allclose(self.source.data["P0"], 0.08937108859019084)

@pytest.mark.parametrize("ref", SOURCES_3PC, ids=lambda _: _["name"])
Copy link
Contributor

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?

Copy link
Member Author

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 ?

Copy link
Contributor

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.

gammapy/catalog/tests/test_fermi.py Outdated Show resolved Hide resolved
Copy link
Contributor

@registerrier registerrier left a 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.

@registerrier registerrier merged commit 5411e78 into gammapy:main May 16, 2024
14 of 17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
gammapy.catalog
  
Awaiting triage
Development

Successfully merging this pull request may close these issues.

None yet

3 participants