Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Assorted bug fixes ELUT reader, vis calibration and livetime correction naming #194

Merged
samaloney merged 6 commits into
TCDSolar:mainfrom
samaloney:bugfix-assorted
Oct 7, 2025
Merged

Assorted bug fixes ELUT reader, vis calibration and livetime correction naming #194
samaloney merged 6 commits into
TCDSolar:mainfrom
samaloney:bugfix-assorted

Conversation

@samaloney

@samaloney samaloney commented Oct 6, 2025

Copy link
Copy Markdown
Member

Closes #185, #184 and #186

@codecov

codecov Bot commented Oct 6, 2025

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 91.66667% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 80.97%. Comparing base (fb3004c) to head (f3342a0).
⚠️ Report is 7 commits behind head on main.

Files with missing lines Patch % Lines
stixpy/calibration/visibility.py 75.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #194      +/-   ##
==========================================
- Coverage   81.05%   80.97%   -0.09%     
==========================================
  Files          35       35              
  Lines        2386     2391       +5     
==========================================
+ Hits         1934     1936       +2     
- Misses        452      455       +3     

☔ 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.

@samaloney samaloney changed the title Bug fix elut reader and metapixel default location. Assorted bug fixes ELUT reader, vis calibration and livetime correction naming Oct 7, 2025
@samaloney samaloney requested a review from Copilot October 7, 2025 10:03

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull Request Overview

This PR fixes multiple calibration and I/O issues: robust ELUT column handling, correct live-time usage in visibility calibration, and completing the SkyCoord migration in calibrate_visibility. It also updates tests, changelogs, and CI triggers.

  • Make ELUT reader resilient to upstream column name changes
  • Return corrected live-time from get_livetime_fraction and update consumers/tests
  • Update calibrate_visibility to use SkyCoord default and add input validation

Reviewed Changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 6 comments.

Show a summary per file
File Description
stixpy/io/readers.py Detect offset/gain columns by name (case-insensitive) to adapt to upstream changes.
stixpy/calibration/visibility.py Use corrected livetime from get_livetime_fraction; switch default flare_location to SkyCoord and validate input.
stixpy/calibration/tests/test_livetime.py Adjust tests to new return ordering and semantics of get_livetime_fraction.
stixpy/calibration/livetime.py Change return values to corrected livetime and two-photon factor; internal variable renames.
changelog/194.bugfix.rst Document fix for incorrect livetime correction in create_meta_pixels.
changelog/194.bugfix.2.rst Document ELUT reader column name fix.
changelog/194.bugfix.1.rst Document SkyCoord migration completion for calibrate_visibility.
.github/workflows/ci.yaml Re-enable push and tag triggers for CI runs.

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread stixpy/calibration/livetime.py Outdated
Comment thread stixpy/calibration/livetime.py
Comment thread stixpy/io/readers.py
Comment thread stixpy/io/readers.py
Comment thread stixpy/calibration/livetime.py
Comment thread changelog/194.bugfix.1.rst Outdated
@samaloney samaloney merged commit 9fe7faa into TCDSolar:main Oct 7, 2025
10 of 12 checks passed
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.

Potential issue in calibrate_visibility

2 participants