Closed smcclure17 closed 2 years ago
If the timeseries is all zeros then last_nonzero_index is None, causing the comparison on line 164 to fail.
last_nonzero_index
None
This change means that we will never truncate the trailing zeros for an all-zero series (even if the series is shorter than stall_length)
stall_length
this addresses the sentry error: https://sentry.io/organizations/covidactnow/issues/2907283165/?environment=Environment.PRODUCTION&project=5203044&referrer=alert_email
If the timeseries is all zeros then
last_nonzero_index
isNone
, causing the comparison on line 164 to fail.This change means that we will never truncate the trailing zeros for an all-zero series (even if the series is shorter than
stall_length
)this addresses the sentry error: https://sentry.io/organizations/covidactnow/issues/2907283165/?environment=Environment.PRODUCTION&project=5203044&referrer=alert_email