Skip to content

Commit

Permalink
Rename ResampleData class weight type parameter.
Browse files Browse the repository at this point in the history
  • Loading branch information
mairanteodoro committed Dec 9, 2024
1 parent 5c515b8 commit 81c574e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions romancal/resample/resample.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def __init__(
pixfrac=1.0,
kernel="square",
fillval="INDEF",
wht_type="ivm",
weight_type="ivm",
good_bits="0",
pscale_ratio=1.0,
pscale=None,
Expand Down Expand Up @@ -95,7 +95,7 @@ def __init__(
self.pixfrac = pixfrac
self.kernel = kernel
self.fillval = fillval
self.weight_type = wht_type
self.weight_type = weight_type
self.good_bits = good_bits
self.in_memory = kwargs.get("in_memory", True)
if "target" in input_models.asn:
Expand Down
4 changes: 2 additions & 2 deletions romancal/resample/tests/test_resample.py
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ def test_resampledata_init(exposure_1):
pixfrac=pixfrac,
kernel=kernel,
fillval=fillval,
wht_type=wht_type,
weight_type=wht_type,
good_bits=good_bits,
pscale_ratio=pscale_ratio,
pscale=pscale,
Expand Down Expand Up @@ -687,7 +687,7 @@ def test_resampledata_do_drizzle_default_single_exposure_weight_array(
"""Test that resample methods return non-empty weight arrays."""

input_models = ModelLibrary(exposure_1)
resample_data = ResampleData(input_models, wht_type=weight_type)
resample_data = ResampleData(input_models, weight_type=weight_type)

output_models_many_to_one = resample_data.resample_many_to_one()
output_models_many_to_many = resample_data.resample_many_to_many()
Expand Down

0 comments on commit 81c574e

Please sign in to comment.