From 363ee11f8669ed690bdd12b599a5f0741e3b3154 Mon Sep 17 00:00:00 2001 From: mairan Date: Thu, 7 Nov 2024 11:23:31 -0500 Subject: [PATCH] Fix bug when checking for "target" in model.asn --- romancal/resample/resample.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/romancal/resample/resample.py b/romancal/resample/resample.py index 1865c099c..56a6332bc 100644 --- a/romancal/resample/resample.py +++ b/romancal/resample/resample.py @@ -98,7 +98,7 @@ def __init__( self.weight_type = wht_type self.good_bits = good_bits self.in_memory = kwargs.get("in_memory", True) - if hasattr(input_models, "target"): + if "target" in input_models.asn: self.location_name = input_models.asn["target"] else: self.location_name = "None"