Skip to content

Commit

Permalink
Add HRP countries to food security
Browse files Browse the repository at this point in the history
  • Loading branch information
b-j-mills committed Feb 8, 2024
1 parent 7970359 commit f0d0126
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 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.7.2] - 2024-02-08

### Added

- Added all HRP countries to food security theme

## [0.7.1] - 2024-02-07

### Added
Expand Down
4 changes: 2 additions & 2 deletions src/hapi/pipelines/configs/food_security.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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"
2 changes: 1 addition & 1 deletion tests/test_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
)
Expand Down

0 comments on commit f0d0126

Please sign in to comment.