Skip to content

Commit

Permalink
Merge pull request #200 from OCHA-DAP/HDXDSYS-1093-global-population
Browse files Browse the repository at this point in the history
HDXDSYS-1093 global population
  • Loading branch information
b-j-mills authored Nov 21, 2024
2 parents 3c22d4a + cbe81e7 commit f8419af
Show file tree
Hide file tree
Showing 28 changed files with 62,660 additions and 3,383 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).

## [0.10.21] - 2024-11-21

### Changed

- Updated population pipeline to read from global dataset

## [0.10.20] - 2024-11-20

### Changed
Expand Down
6 changes: 3 additions & 3 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,9 @@ pyasn1==0.6.1
# rsa
pyasn1-modules==0.4.1
# via google-auth
pydantic==2.9.2
pydantic==2.10.0
# via frictionless
pydantic-core==2.23.4
pydantic-core==2.27.0
# via pydantic
pygments==2.18.0
# via rich
Expand Down Expand Up @@ -228,7 +228,7 @@ ruamel-yaml==0.18.6
# via hdx-python-utilities
ruamel-yaml-clib==0.2.12
# via ruamel-yaml
setuptools==75.5.0
setuptools==75.6.0
# via ckanapi
shellingham==1.5.4
# via typer
Expand Down
1 change: 0 additions & 1 deletion src/hapi/pipelines/app/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,6 @@ def main(
"idps.yaml",
"national_risk.yaml",
"operational_presence.yaml",
"population.yaml",
"refugees_and_returnees.yaml",
"wfp.yaml",
]
Expand Down
13 changes: 2 additions & 11 deletions src/hapi/pipelines/app/pipelines.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,13 +173,6 @@ def _create_configurable_scrapers(
current_scrapers + scraper_names
)

_create_configurable_scrapers("population", "national")
_create_configurable_scrapers(
"population", "adminone", adminlevel=self.adminone
)
_create_configurable_scrapers(
"population", "admintwo", adminlevel=self.admintwo
)
_create_configurable_scrapers(
"operational_presence", "admintwo", adminlevel=self.admintwo
)
Expand All @@ -206,14 +199,12 @@ def run(self):

def output_population(self):
if not self.themes_to_run or "population" in self.themes_to_run:
results = self.runner.get_hapi_results(
self.configurable_scrapers["population"]
)
population = Population(
session=self.session,
metadata=self.metadata,
admins=self.admins,
results=results,
configuration=self.configuration,
error_manager=self.error_manager,
)
population.populate()

Expand Down
Loading

0 comments on commit f8419af

Please sign in to comment.