Snt25 518#96
Open
EstebanMontandon wants to merge 5 commits into
Open
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Note
Copilot was unable to run its full agentic suite in this review.
This PR updates the SNT MAP extracts pipeline to support extracting multiple years (start/end), adds WorldPop-based population raster download & aggregation, and refactors aggregation outputs to Polars while updating reporting utilities.
Changes:
- Add a
WorldPopClientto download country/year population rasters and generate per-ADM2 population tables. - Refactor the pipeline to accept
year_start/year_end, loop over periods, and output year-suffixed CSV/Parquet files using Polars. - Update reporting utilities (R + notebook) to load parameters and plot the latest year.
Reviewed changes
Copilot reviewed 7 out of 8 changed files in this pull request and generated 10 comments.
Show a summary per file
| File | Description |
|---|---|
| snt_map_extracts/worlpopclient.py | New client for listing releases and atomically downloading WorldPop rasters |
| snt_map_extracts/utils.py | New utilities for periods, raster alignment, zonal totals, and weighted metrics (Polars) |
| snt_map_extracts/pipeline.py | Pipeline refactor for multiple years, WorldPop integration, Polars outputs, new helper functions |
| snt_map_extracts/malariaAtlasProject/map_utils.py | Refactor TIFF reading to load all bands in one read and improve error details |
| snt_map_extracts/malariaAtlasProject/map.py | Avoid re-downloading existing rasters earlier in the function flow |
| pipelines/snt_map_extracts/utils/snt_map_extracts_report.r | New setup/config/dataset-loading helpers; add year in plot titles |
| pipelines/snt_map_extracts/reporting/snt_map_extracts_report.ipynb | Update notebook to use new R helpers + parameters, load latest year file |
| .gitignore | Ignore Python __pycache__/ |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
MAP indicators extract pipeline changes to handle period extracts:
-Includes Worldpop raster repository update (folder: data/worldpop/rasters)