Skip to content

Commit

Permalink
bugfix import
Browse files Browse the repository at this point in the history
  • Loading branch information
mperrin committed Feb 7, 2024
1 parent 2ccc748 commit 7205088
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webbpsf/trending.py
Original file line number Diff line number Diff line change
Expand Up @@ -1700,7 +1700,7 @@ def nrc_ta_image_comparison(visitid, verbose=False, show_centroid=False):
oss_cen_sci_pythonic = None

Check warning on line 1700 in webbpsf/trending.py

View check run for this annotation

Codecov / codecov/patch

webbpsf/trending.py#L1697-L1700

Added lines #L1697 - L1700 were not covered by tests

### WCS COORDINATES ###
import jwst
import jwst.datamodels
model = jwst.datamodels.open(hdul)
targ_coords = astropy.coordinates.SkyCoord(model.meta.target.ra, model.meta.target.dec, frame='icrs', unit=u.deg)
targ_coords_pix = model.meta.wcs.world_to_pixel(targ_coords) # returns x, y
Expand Down

0 comments on commit 7205088

Please sign in to comment.