Make it possible for plugins to subtype ForwardModel #7409
Labels
configuration
improvement
Something nice to have, that will make life easier for developers or users or both.
Currently, making e.g. pyscal form semeio available as a forward model in ert means creating a config file, and pointing ert to it with the plugin interface method
installable_jobs()
(done here).From there, it is inserted into the site config and read here:
ert/src/ert/config/ert_config.py
Lines 684 to 708 in 006499c
This makes it difficult to add additional validation of the setup such as valid version number etc.
In order to remedy this, the suggestion is that the plugin interface is extended so that e.g. fm_pyscal can be implemented as a subtype of
ForwardModel
. The specifics of a forward model read from a config file would have to also be pushed out into subtype ofForwardModel
e.g.ConfigFileForwardModel
, so thatForwardModel
is an abstract baseclass.In this way the PYSCAL forward model could be implemented like this:
where create_arguments is responsible for handling default values and validating parameters.
The text was updated successfully, but these errors were encountered: