Skip to content

Commit

Permalink
fix number of context planes (spacetelescope#1355)
Browse files Browse the repository at this point in the history
Co-authored-by: Eddie Schlafly <eschlafly@gmail.com>
  • Loading branch information
braingram and schlafly authored Aug 13, 2024
1 parent 155e8f3 commit 8d7d7aa
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,11 @@ tweakreg
--------
- Integration with ``SourceCatalogStep``: allow usage of results from ``SourceCatalogStep``. [#1276]

resample
--------

- Fix incorrect number of starting planes for context image. [#1355]

mosaic_pipeline
---------------

Expand Down
4 changes: 3 additions & 1 deletion romancal/resample/resample.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,10 @@ def __init__(
# NOTE: wait for William to fix bug in datamodels' init and then
# use datamodels.ImageModel(shape=(nx, ny)) instead of mk_datamodel()

# n_images sets the number of context image planes.
# This should be 1 to start (not the default of 2).
self.blank_output = maker_utils.mk_datamodel(
datamodels.MosaicModel, shape=tuple(self.output_wcs.array_shape)
datamodels.MosaicModel, n_images=1, shape=tuple(self.output_wcs.array_shape)
)

with self.input_models:
Expand Down

0 comments on commit 8d7d7aa

Please sign in to comment.