Closed lisphilar closed 3 years ago
Error handling is not clear when some errors is raised with regressor. When a internal ValueError occurs, the error description is always ValueError: max() arg is an empty sequence. This is related to #778.
ValueError
ValueError: max() arg is an empty sequence
import covsirphy as cs # Dataset preparation data_loader = cs.DataLoader("input") jhu_data = data_loader.jhu() oxcgr_data = data_loader.oxcgrt() # Scenario analysis snl = cs.Scenario(country="Italy") snl.register(jhu_data, extras=[oxcgrt_data])) snl.trend() snl.estimate(cs.SIRF) snl.fit()
If some ValueError occured with regressors, ValueError: max() arg is an empty sequence.
When all regressors failed in select delay value (i.e. some parameter values are out of (0, 1)), UnExpectedReturnValueError will be returned.
UnExpectedReturnValueError
Summary
Error handling is not clear when some errors is raised with regressor. When a internal
ValueError
occurs, the error description is alwaysValueError: max() arg is an empty sequence
. This is related to #778.Codes
Outputs
If some
ValueError
occured with regressors,ValueError: max() arg is an empty sequence
.Environment