Skip to content

Commit

Permalink
remove stcal upper pin (#1340)
Browse files Browse the repository at this point in the history
  • Loading branch information
braingram authored Jul 31, 2024
2 parents 31d9b15 + 56079d0 commit d837289
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 8 deletions.
2 changes: 0 additions & 2 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ Documentation
general
-------

- Pin the version of stcal<1.8.0 until stcal API changes are in romancal [#1326]

- Update the exposure pipeline to accept a roman datamodel as input [#1296]

- Update okify script to use GA directory structure [#1282]
Expand Down
8 changes: 4 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@ dependencies = [
# "roman_datamodels>=0.20.0",
"roman_datamodels @ git+https://github.com/spacetelescope/roman_datamodels.git",
"scipy >=1.11",
"stcal>=1.7.3,<1.8.0",
# "stcal @ git+https://github.com/spacetelescope/stcal.git@main",
#"stcal>=1.7.3,<1.8.0",
"stcal @ git+https://github.com/spacetelescope/stcal.git@main",
#"stpipe >=0.5.0",
"stpipe @ git+https://github.com/spacetelescope/stpipe.git@main",
"tweakwcs >=0.8.6",
"tweakwcs >=0.8.8",
"spherical-geometry >= 1.2.22",
"stsci.imagestats >= 1.6.3",
"drizzle >= 1.14.0",
"drizzle >= 1.15.0",
"webbpsf >= 1.2.1",
]
dynamic = [
Expand Down
4 changes: 3 additions & 1 deletion romancal/resample/resample_step.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,9 @@ def process(self, input):

def _final_updates(self, model, input_models, kwargs):
model.meta.cal_step["resample"] = "COMPLETE"
util.update_s_region_imaging(model)
model.meta.wcsinfo.s_region = util.compute_s_region_imaging(
model.meta.wcs, model.data.shape
)

# if pixel_scale exists, it will override pixel_scale_ratio.
# calculate the actual value of pixel_scale_ratio based on pixel_scale
Expand Down
4 changes: 3 additions & 1 deletion romancal/resample/resample_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,9 @@ def make_output_wcs(
raise RuntimeError(f"Output WCS needs 2 axes.{wcslist[0]} has {naxes}.")

output_wcs = wcs_from_footprints(
input_models,
wcslist,
None,
dict(input_models[0].meta.wcsinfo),
pscale_ratio=pscale_ratio,
pscale=pscale,
rotation=rotation,
Expand Down

0 comments on commit d837289

Please sign in to comment.