Skip to content

Commit

Permalink
Fix vectorization by group
Browse files Browse the repository at this point in the history
  • Loading branch information
yellowcap committed Jan 27, 2025
1 parent 5c2dbf3 commit b6d9920
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tests/test_dist_alerts.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ def test_dist_alert_tool():
"gadm_level": 2,
"context_layer_name": "WRI/SBTN/naturalLands/v1/2020",
"threshold": 8,
"min_date": datetime.date(2021, 8, 12),
"max_date": datetime.date(2024, 8, 12),
"min_date": datetime.date(2023, 8, 1),
"max_date": datetime.date(2023, 8, 31),
}
)

Expand Down
2 changes: 1 addition & 1 deletion zeno/agents/distalert/tool_dist_alerts.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def get_zone_stats(
collection=gee_features,
reducer=ee.Reducer.count().group(groupField=1, groupName=choice["band"]),
scale=choice["resolution"],
).getInfo(), zone_stats_img
).getInfo(), zone_stats_img.select(choice["band"])


def get_alerts_by_context_layer(
Expand Down

0 comments on commit b6d9920

Please sign in to comment.