Skip to content

Commit

Permalink
Fix bug when checking for "target" in model.asn
Browse files Browse the repository at this point in the history
  • Loading branch information
mairanteodoro committed Nov 7, 2024
1 parent 78d5e0f commit 088212b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion romancal/resample/resample.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 088212b

Please sign in to comment.