Skip to content

Commit

Permalink
Merge pull request #74 from OCHA-DAP/bugfix/HDXDSYS-1433-poverty-rate…
Browse files Browse the repository at this point in the history
…-precision

Change poverty rate constraint
  • Loading branch information
b-j-mills authored Dec 5, 2024
2 parents 27e7676 + c25a96d commit 477d924
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,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/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## 0.9.5

### Changed

- Changed precision of poverty rate constraint

## 0.9.4

### Added
Expand Down
2 changes: 1 addition & 1 deletion src/hapi_schema/db_poverty_rate.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class DBPovertyRate(Base):
percentage_constraint(var_name="in_severe_poverty"),
reference_period_constraint(),
CheckConstraint(
sqltext="ABS(headcount_ratio / 100 * intensity_of_deprivation / 100 - mpi) < 0.00001",
sqltext="ABS(headcount_ratio / 100 * intensity_of_deprivation / 100 - mpi) < 0.0001",
name="mpi_product_constraint",
),
)
Expand Down

0 comments on commit 477d924

Please sign in to comment.