-
Notifications
You must be signed in to change notification settings - Fork 33
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
Added numerical check between agnpy and Finke 2016 for absorption on BLR and DT #89
Conversation
Codecov Report
@@ Coverage Diff @@
## master #89 +/- ##
==========================================
+ Coverage 94.35% 94.36% +0.01%
==========================================
Files 30 30
Lines 2054 2059 +5
==========================================
+ Hits 1938 1943 +5
Misses 116 116
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
Sourcery Code Quality Report❌ Merging this PR will decrease code quality in the affected files by 1.57%.
Here are some functions in these files that still need a tune-up:
Legend and ExplanationThe emojis denote the absolute quality of the code:
The 👍 and 👎 indicate whether the quality has improved or gotten worse with this pull request. Please see our documentation here for details on how these metrics are calculated. We are actively working on this report - lots more documentation and extra metrics to come! Let us know what you think of it by mentioning @sourcery-ai in a comment. |
So far we were just producing plots for the crosschecks against the Finke 2016 reference for the case of the gamma-gamma absorption on the BLR and DT.
I added the
check_deviation
function at the end of the functions checking these absorptions numerically against the reference.These are the automatic plots produced now by the
TestAbsorption
classfor the BLR
and for the DT
Keeping in mind that, thanks to @jsitarek work, we are also checking against the point-source approximation (for the misaligned case) I think we can close both issues #65 and #66.
I think for the BLR and DT the absorption is under control.