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

Skip to content

Corrected for STIX pointing in HPC 0,0 coordinate for imaging_demo#216

Merged
samaloney merged 7 commits into
TCDSolar:mainfrom
rh2082:main
Apr 2, 2026
Merged

Corrected for STIX pointing in HPC 0,0 coordinate for imaging_demo#216
samaloney merged 7 commits into
TCDSolar:mainfrom
rh2082:main

Conversation

@rh2082

@rh2082 rh2082 commented Mar 17, 2026

Copy link
Copy Markdown
Contributor

The location being used to calibrate the visibilities has been changed to be the spacecraft pointing rather than [0,0]

@samaloney

Copy link
Copy Markdown
Member

Thanks for the PR made some small changes and should be good to go.

It usually best to alway work on a branch e.g don't ever touch main as it can cause headache in the future.

@codecov

codecov Bot commented Mar 30, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 90.90909% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 81.56%. Comparing base (c46bfcd) to head (20876e8).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
stixpy/coordinates/frames.py 75.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #216      +/-   ##
==========================================
+ Coverage   81.54%   81.56%   +0.01%     
==========================================
  Files          35       35              
  Lines        2439     2441       +2     
==========================================
+ Hits         1989     1991       +2     
  Misses        450      450              

☔ 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 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM thanks @rh2082

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 updates STIX imaging calibration/example usage to use the STIX frame’s pointing center (spacecraft pointing / STIX FOV center) instead of assuming an HPC (0,0) reference, and includes a few supporting time-handling and test adjustments.

Changes:

  • Update examples/imaging_demo.py to calibrate visibilities using a STIXImaging center coordinate and reflect that in the example narrative.
  • Adjust STIX coordinate-time handling by using midpoint arithmetic and improving end_time handling in get_hpc_info.
  • Refresh remote-data test expectations and refactor one Fido test into a parametrized form.

Reviewed changes

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

Show a summary per file
File Description
stixpy/net/tests/test_client.py Updates remote-data expectations and refactors a Fido search test into parametrized cases.
stixpy/coordinates/transforms.py Tweaks get_hpc_info end-time handling and replaces np.mean(Time(...)) with midpoint arithmetic in transforms.
stixpy/coordinates/tests/test_transforms.py Updates STIXImaging SkyCoord construction style in a remote-data transform test.
stixpy/coordinates/frames.py Uses midpoint arithmetic for obstime_avg and defaults obstime_end to obstime when omitted.
stixpy/calibration/tests/test_visibility.py Uses explicit midpoint arithmetic and minor refactor for clarity in visibility calibration test.
examples/imaging_demo.py Switches demo to use STIX FOV center for calibration and updates WCS/map setup accordingly.
changelog/216.bugfix.rst Documents the example fix.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread stixpy/coordinates/transforms.py Outdated
Comment thread stixpy/coordinates/transforms.py Outdated
Comment thread stixpy/coordinates/frames.py Outdated
Comment thread stixpy/net/tests/test_client.py Outdated
Comment thread examples/imaging_demo.py Outdated
Comment thread examples/imaging_demo.py Outdated
Comment thread stixpy/coordinates/frames.py
@samaloney samaloney merged commit 8d725d3 into TCDSolar:main Apr 2, 2026
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.

3 participants