mirror of
https://github.com/DOI-DO/j40-cejst-2.git
synced 2025-08-19 11:01:39 -07:00
updated error message
This commit is contained in:
parent
c5244470ed
commit
15b4f5b617
1 changed files with 5 additions and 2 deletions
|
@ -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]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue