Skip to content

Commit

Permalink
Fixed bug that broke area estimate notebooks
Browse files Browse the repository at this point in the history
  • Loading branch information
anatarano committed Oct 29, 2024
1 parent 2172cd3 commit 06e41fa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/area_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,9 @@ def reference_sample_agree(
px, py = transform.rowcol(meta["transform"], lat, lon)

try:
ceo_agree_geom.loc[r, "Mapped class"] = int(binary_map[px, py])

ceo_agree_geom.loc[r, "Mapped class"] = int(binary_map[int(px), int(py)])

if (
row[label_question].lower() == "cropland"
or row[label_question].lower() == "crop"
Expand Down

0 comments on commit 06e41fa

Please sign in to comment.