From d5ef2b1d24754cd4d3772853a788617f71eecb1e Mon Sep 17 00:00:00 2001 From: "M. Teodoro" Date: Fri, 6 Dec 2024 11:54:03 -0500 Subject: [PATCH] Rename ResampleData class weight type parameter. --- romancal/resample/resample.py | 4 ++-- romancal/resample/tests/test_resample.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/romancal/resample/resample.py b/romancal/resample/resample.py index aa01c1b11..9e05d0055 100644 --- a/romancal/resample/resample.py +++ b/romancal/resample/resample.py @@ -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, @@ -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: diff --git a/romancal/resample/tests/test_resample.py b/romancal/resample/tests/test_resample.py index ec8a27b69..0606162fd 100644 --- a/romancal/resample/tests/test_resample.py +++ b/romancal/resample/tests/test_resample.py @@ -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, @@ -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()