Skip to content

Add livetime and elut correction#222

Draft
samaloney wants to merge 3 commits into
TCDSolar:mainfrom
samaloney:feat-cpd-calibration
Draft

Add livetime and elut correction#222
samaloney wants to merge 3 commits into
TCDSolar:mainfrom
samaloney:feat-cpd-calibration

Conversation

@samaloney
Copy link
Copy Markdown
Member

No description provided.

@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 20, 2026

Codecov Report

❌ Patch coverage is 64.61538% with 92 lines in your changes missing coverage. Please review.
✅ Project coverage is 76.16%. Comparing base (4f4e0c7) to head (f91fa6f).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
stixpy/product/sources/science.py 61.75% 83 Missing ⚠️
stixpy/product/product_factory.py 79.31% 6 Missing ⚠️
stixpy/calibration/tests/test_visibility.py 60.00% 2 Missing ⚠️
stixpy/calibration/visibility.py 88.88% 1 Missing ⚠️

❗ There is a different number of reports uploaded between BASE (4f4e0c7) and HEAD (f91fa6f). Click for more details.

HEAD has 13 uploads less than BASE
Flag BASE (4f4e0c7) HEAD (f91fa6f)
14 1
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #222      +/-   ##
==========================================
- Coverage   85.29%   76.16%   -9.13%     
==========================================
  Files          50       50              
  Lines        3175     3293     +118     
==========================================
- Hits         2708     2508     -200     
- Misses        467      785     +318     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Copy Markdown

@jajmitchell jajmitchell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I took a quick look through and the only thing I could see that needs adding in is the livetime error

Comment thread stixpy/product/sources/science.py Outdated

if livetime_correction:
lt = self.livetime_fraction[:, : counts.shape[1]].reshape(counts.shape[0], counts.shape[1], 1, 1)
counts = counts / lt
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to add in livetime uncertainty calculation by calculating livetime_upper and livetime_lower

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.

2 participants