Skip to content

Conversation

@mcara
Copy link
Member

@mcara mcara commented Jun 30, 2023

Resolves JP-3285

This PR fixes a bug in the adjust_wcs script that would prevent setting angles to negative numbers in the engineering format (a limitation of argparse). This PR also adds support for units for angles. For example, now the scrpt can be invoked like this:

adjust_wcs in_file.fits -f out_file.fits --overwrite -r 1.2 arcsec -d -4.5e-6 -s 1.0001

When angle units are not provided (as for the DEC angle correction above), the angles are still assumed to be in degrees.

Finally, this PR adds functions from the tweakreg.utils module to the __all__ variable thus publishing the docstrings of these functions in the jwst documentation.

Checklist for maintainers

  • added entry in CHANGES.rst within the relevant release section
  • updated or added relevant tests
  • updated relevant documentation
  • added relevant milestone
  • added relevant label(s)
  • ran regression tests, post a link to the Jenkins job below.
    How to run regression tests on a PR
  • Make sure the JIRA ticket is resolved properly

@mcara mcara added this to the Build 10.0 milestone Jun 30, 2023
@mcara mcara requested review from hbushouse and nden June 30, 2023 19:34
@mcara mcara self-assigned this Jun 30, 2023
@mcara mcara requested a review from a team as a code owner June 30, 2023 19:34
@mcara mcara force-pushed the improve-adjust-wcs branch 2 times, most recently from 88782a9 to 67de12a Compare June 30, 2023 19:46
@codecov
Copy link

codecov bot commented Jun 30, 2023

Codecov Report

Patch coverage: 24.44% and project coverage change: -0.07 ⚠️

Comparison is base (8c40333) 76.62% compared to head (7fb785f) 76.56%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #7683      +/-   ##
==========================================
- Coverage   76.62%   76.56%   -0.07%     
==========================================
  Files         456      456              
  Lines       36833    36877      +44     
==========================================
+ Hits        28223    28234      +11     
- Misses       8610     8643      +33     
Flag Coverage Δ *Carryforward flag
nightly 77.43% <ø> (+<0.01%) ⬆️ Carriedforward from 8c40333

*This pull request uses carry forward flags. Click here to find out more.

Impacted Files Coverage Δ
jwst/scripts/adjust_wcs.py 18.81% <13.88%> (-2.41%) ⬇️
jwst/tweakreg/utils.py 90.47% <66.66%> (-2.86%) ⬇️

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@mcara mcara force-pushed the improve-adjust-wcs branch from 67de12a to a56f805 Compare July 1, 2023 01:26
@mcara mcara force-pushed the improve-adjust-wcs branch from a56f805 to 7fb785f Compare July 1, 2023 03:35
Copy link
Collaborator

@hbushouse hbushouse left a comment

Choose a reason for hiding this comment

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

Looks good to me.

group, the timing for these ramps is not group time. These adjusted times
are now used. [#7612, spacetelescope/stcal#173]

tweakreg
Copy link
Collaborator

Choose a reason for hiding this comment

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

These entries need to be moved to the top of the log, in the unreleased section.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants