Helpful error when using an invalid schedule
in OutputWriters, Diagnostics, and Callbacks
#2180
Labels
schedule
in OutputWriters, Diagnostics, and Callbacks
#2180
A common mistake is to give a
Number
as a schedule instead ofTimeInterval(Number)
. It'd be much more user-friendly if we have have a function that validates the schedule (and throw an error) because as is now, the first time you encounter the error usually inrun!
and it's hard to pin-point it.Another solution is to test-call the schedule when you initialize the simulation (e.g., put it in a
try-catch
) and throw the error to user?(discovered with @glwagner)
The text was updated successfully, but these errors were encountered: