Skip to content

Commit

Permalink
Bug fix in interpolation getting scale factor
Browse files Browse the repository at this point in the history
  • Loading branch information
cgmorton committed Oct 16, 2024
1 parent 5b9763e commit 94cecba
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions openet/sims/collection.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ def __init__(
self.model_args = model_args
else:
self.model_args = {}

if filter_args is not None:
self.filter_args = filter_args
else:
Expand Down
2 changes: 1 addition & 1 deletion openet/sims/interpolate.py
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ def interpolate_prep(img):

# Set the default scale factor to 1 if the image does not have the property
scale_factor = (
ee.Dictionary({'scale_factor_et_fraction': img.get('scale_factor')})
ee.Dictionary({'scale_factor': img.get('scale_factor_et_fraction')})
.combine({'scale_factor': 1.0}, overwrite=False)
)

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "openet-sims"
version = "0.2.4"
version = "0.2.5"
authors = [
{ name = "Alberto Guzman", email = "[email protected]" },
]
Expand Down

0 comments on commit 94cecba

Please sign in to comment.