cmu-delphi / epipredict

Tools for building predictive models in epidemiology.
https://cmu-delphi.github.io/epipredict/
Other
8 stars 9 forks source link

Surface step name when reporting error #287

Closed dshemetov closed 4 days ago

dshemetov commented 8 months ago
          True, though it would be nice if `Error in (function (name, value)  : ` said `Error in step_epi_ahead() :` instead.

Originally posted by @dajmcdon in https://github.com/cmu-delphi/epipredict/issues/286#issuecomment-1915671370

Our input validation tells which argument had the error, but doesn't specify which step in the recipe. The user can get there with traceback(), but it would be nice if we could surface this by default.