From 15b4f5b61730a546baa77bddec4f00d40dc359f5 Mon Sep 17 00:00:00 2001 From: Emma Nechamkin Date: Fri, 26 Aug 2022 10:12:45 -0400 Subject: [PATCH] updated error message --- .../data_pipeline/etl/sources/national_risk_index/etl.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/data/data-pipeline/data_pipeline/etl/sources/national_risk_index/etl.py b/data/data-pipeline/data_pipeline/etl/sources/national_risk_index/etl.py index 51ffcfa0..c6a312c0 100644 --- a/data/data-pipeline/data_pipeline/etl/sources/national_risk_index/etl.py +++ b/data/data-pipeline/data_pipeline/etl/sources/national_risk_index/etl.py @@ -163,8 +163,11 @@ class NationalRiskIndexETL(ExtractTransformLoad): df_nri[self.EXPECTED_AGRICULTURE_LOSS_RATE_FIELD_NAME] != base_expectation ][self.AGRICULTURAL_VALUE_INPUT_FIELD_NAME].max() - < self.AGRIVALUE_LOWER_BOUND - ), "Clipping the agrivalue did not work!" + <= self.AGRIVALUE_LOWER_BOUND + ), ( + "Clipping the agrivalue did not work. There are places where the value doesn't " + + "match an unclipped ratio, even where the agrivalue is above the lower bound!" + ) assert ( df_nri[self.EXPECTED_AGRICULTURE_LOSS_RATE_FIELD_NAME]