xarray-contrib / xarray-simlab

Xarray extension and framework for computer model simulations
http://xarray-simlab.readthedocs.io
BSD 3-Clause "New" or "Revised" License
73 stars 9 forks source link

Control simulation runtime from hook functions #152

Closed benbovy closed 3 years ago

benbovy commented 4 years ago

We could allow runtime_hook decorated function to return some value (e.g., a "signal") to control simulation runtime, e.g.,

Those cases could be enumerated into a RuntimeSignal Enum class.