Skip to content

Commit

Permalink
fix woody cover aggregation
Browse files Browse the repository at this point in the history
  • Loading branch information
Emma Ai committed Aug 21, 2024
1 parent bad6a6c commit 1581620
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docker/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ odc-dscache>=0.2.3
odc-stac @ git+https://github.com/opendatacube/odc-stac@69bdf64

# odc-stac is in PyPI
odc-stats[ows] @ git+https://github.com/opendatacube/odc-stats@c7a10ce
odc-stats[ows] @ git+https://github.com/opendatacube/odc-stats@bad6a6c

# For ML
tflite-runtime
Expand Down
2 changes: 1 addition & 1 deletion odc/stats/plugins/lc_treelite_woody.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def aggregate_results_from_group(self, predict_output):
)

if m_size > 1:
predict_output = predict_output.sum(axis=0).astype("int")
predict_output = predict_output.sum(axis=0)

predict_output = expr_eval(
"where((a/nodata)>=_l, nodata, a%nodata)",
Expand Down

0 comments on commit 1581620

Please sign in to comment.