mirror of
https://github.com/DOI-DO/j40-cejst-2.git
synced 2025-08-19 11:01:39 -07:00
updated with error messages
This commit is contained in:
parent
16209cc029
commit
c5244470ed
1 changed files with 6 additions and 1 deletions
|
@ -164,7 +164,12 @@ class NationalRiskIndexETL(ExtractTransformLoad):
|
|||
!= base_expectation
|
||||
][self.AGRICULTURAL_VALUE_INPUT_FIELD_NAME].max()
|
||||
< self.AGRIVALUE_LOWER_BOUND
|
||||
)
|
||||
), "Clipping the agrivalue did not work!"
|
||||
|
||||
assert (
|
||||
df_nri[self.EXPECTED_AGRICULTURE_LOSS_RATE_FIELD_NAME]
|
||||
!= base_expectation
|
||||
).sum() > 0, "Clipping the agrivalue did nothing!"
|
||||
|
||||
# This produces a boolean that is True in the case of non-zero agricultural value
|
||||
df_nri[self.CONTAINS_AGRIVALUE] = (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue