Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Dec 29, 2023
1 parent 244815a commit ee06777
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions romancal/resample/resample.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
import numpy as np
from astropy import units as u
from drizzle import cdrizzle, util
from roman_datamodels import datamodels
from roman_datamodels import maker_utils
from roman_datamodels import datamodels, maker_utils

from ..datamodels import ModelContainer
from . import gwcs_drizzle, resample_utils
Expand Down Expand Up @@ -352,7 +351,7 @@ def resample_variance_array(self, name, output_model):
This modifies ``output_model`` in-place.
"""
output_wcs = self.output_wcs
output_wcs = self.output_wcs

Check warning on line 354 in romancal/resample/resample.py

View check run for this annotation

Codecov / codecov/patch

romancal/resample/resample.py#L354

Added line #L354 was not covered by tests
inverse_variance_sum = np.full_like(output_model.data.value, np.nan)

log.info(f"Resampling {name}")
Expand Down Expand Up @@ -730,8 +729,8 @@ def gwcs_into_l3(model, wcsinfo):
transform = wcsinfo.forward_transform

Check warning on line 729 in romancal/resample/resample.py

View check run for this annotation

Codecov / codecov/patch

romancal/resample/resample.py#L728-L729

Added lines #L728 - L729 were not covered by tests

# Basic WCS info
l3_wcsinfo.projection = 'TAN'
l3_wcsinfo.rotation_matrix = transform['pc_rotation_matrix'].matrix.value.tolist()
l3_wcsinfo.projection = "TAN"
l3_wcsinfo.rotation_matrix = transform["pc_rotation_matrix"].matrix.value.tolist()
l3_wcsinfo.dec_ref = transform.lat_6.value
l3_wcsinfo.ra_ref = transform.lon_6.value

Check warning on line 735 in romancal/resample/resample.py

View check run for this annotation

Codecov / codecov/patch

romancal/resample/resample.py#L732-L735

Added lines #L732 - L735 were not covered by tests
# l3_wcsinfo.x_ref = center of mosaic?
Expand Down

0 comments on commit ee06777

Please sign in to comment.