From f0d01260735d77f85e72c2e1dd8504fa44f0a19e Mon Sep 17 00:00:00 2001 From: Briar Date: Thu, 8 Feb 2024 12:32:58 -0500 Subject: [PATCH] Add HRP countries to food security --- CHANGELOG.md | 6 ++++++ src/hapi/pipelines/configs/food_security.yaml | 4 ++-- tests/test_main.py | 2 +- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3d923ae5..7e956080 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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.7.2] - 2024-02-08 + +### Added + +- Added all HRP countries to food security theme + ## [0.7.1] - 2024-02-07 ### Added diff --git a/src/hapi/pipelines/configs/food_security.yaml b/src/hapi/pipelines/configs/food_security.yaml index ea3f3cb8..ca804357 100644 --- a/src/hapi/pipelines/configs/food_security.yaml +++ b/src/hapi/pipelines/configs/food_security.yaml @@ -110,7 +110,7 @@ food_security_adminone: - "adm0_pcod3" - "adm1_pcod2" admin_exact: False - prefilter: "adm0_pcod3 in ['NGA', 'TCD'] and adm2_pcod2 is None" + prefilter: "adm0_pcod3 in ['AFG', 'BFA', 'CAF', 'CMR', 'COD', 'COL', 'ETH', 'GTM', 'HND', 'HTI', 'MLI', 'MMR', 'MOZ', 'NER', 'NGA', 'PSE', 'SDN', 'SLV', 'SOM', 'SSD', 'SYR', 'TCD', 'UKR', 'VEN', 'YEM'] and adm2_pcod2 is None" filter_cols: - "adm0_pcod3" - "adm2_pcod2" @@ -123,6 +123,6 @@ food_security_admintwo: - "adm0_pcod3" - "adm2_pcod2" admin_exact: False - prefilter: "adm0_pcod3 in ['BFA', 'MLI', 'NGA', 'TCD']" + prefilter: "adm0_pcod3 in ['AFG', 'BFA', 'CAF', 'CMR', 'COD', 'COL', 'ETH', 'GTM', 'HND', 'HTI', 'MLI', 'MMR', 'MOZ', 'NER', 'NGA', 'PSE', 'SDN', 'SLV', 'SOM', 'SSD', 'SYR', 'TCD', 'UKR', 'VEN', 'YEM']" filter_cols: - "adm0_pcod3" diff --git a/tests/test_main.py b/tests/test_main.py index 068c0d01..d3988adf 100644 --- a/tests/test_main.py +++ b/tests/test_main.py @@ -148,7 +148,7 @@ def test_pipelines(self, configuration, folder): count = session.scalar( select(func.count(DBFoodSecurity.id)) ) - assert count == 103264 + assert count == 136094 count = session.scalar( select(func.count(DBHumanitarianNeeds.id)) )