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

Xspec gain #148

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from
Draft

Xspec gain #148

wants to merge 4 commits into from

Conversation

KriSun95
Copy link
Collaborator

PR Description

As described in #147 , this draft shows how the gain can be applied in sunkit-spex as it is applied in XSPEC. More discussion is needed but this should be somewhere to comment on.

We change the gain correction being applied to edit the photon axis grid of the SRM before the total count model calculation as opposed to the current behaviour where the gain is applied after the photon model is folded through the response.

@codecov-commenter
Copy link

Codecov Report

Attention: Patch coverage is 44.73684% with 21 lines in your changes missing coverage. Please review.

Please upload report for BASE (main@eb860e9). Learn more about missing BASE report.

Files Patch % Lines
sunkit_spex/fitting_legacy/fitter.py 44.73% 21 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main     #148   +/-   ##
=======================================
  Coverage        ?   55.66%           
=======================================
  Files           ?       20           
  Lines           ?     3196           
  Branches        ?        0           
=======================================
  Hits            ?     1779           
  Misses          ?     1417           
  Partials        ?        0           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants