Skip to content

Commit

Permalink
change mean() to sum() in world_pop and world_pop_agesex
Browse files Browse the repository at this point in the history
  • Loading branch information
tedw0ng committed Aug 25, 2024
1 parent c3c0bb9 commit f4bb00a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion city_metrix/layers/world_pop.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def get_data(self, bbox):
.filterBounds(ee.Geometry.BBox(*bbox))
.filter(ee.Filter.inList('year', [2020]))
.select('population')
.mean()
.sum()
)

data = get_image_collection(world_pop, bbox, 100, "world pop")
Expand Down
2 changes: 1 addition & 1 deletion city_metrix/layers/worldpop_age_sex_class.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def get_data(self, bbox):
.select(agesex_class)
)
)
world_pop = world_pop.mean() # Should this be sum?
world_pop = world_pop.sum()

data = get_image_collection(world_pop, bbox, 100, "world pop")
return data.population

0 comments on commit f4bb00a

Please sign in to comment.