I already added a model.initialized attribute that should track whether a model was initialized or not. That attribute can be used to check model status. Maybe we need something similar for the solve?
This issue is meant to improve error messages when certain things do not work because a model is not solved/initialized.
Perhaps we can implement it as a decorator to save code:
@model_solved()
def head(self, x, y, t, layers=None):
...
I already added a
model.initializedattribute that should track whether a model was initialized or not. That attribute can be used to check model status. Maybe we need something similar for the solve?This issue is meant to improve error messages when certain things do not work because a model is not solved/initialized.
Perhaps we can implement it as a decorator to save code: