NOAA-OWP / ngen-cal

Tools for calibrating and configuring NextGen
https://github.com/NOAA-OWP/ngen-cal/wiki
Other
9 stars 17 forks source link

feat: `ngen_cal_model_configure` model hook #161

Closed aaraney closed 3 months ago

aaraney commented 3 months ago

Add model hook: ngen_cal_model_configure hook that mirrors the existing ngen_cal_configure hook.

    @hookspec
    def ngen_cal_model_configure(self, config: ngen.cal.model.ModelExec) -> None:
        """
        Called before calibration begins.
        This allow plugins to perform initial configuration.

        Plugins' configuration data should be provided using the
        `plugins_settings` field in the `model` section of an `ngen.cal`
        configuration file.
        By convention, the name of the plugin should be used as top level key in
        the `plugin_settings` dictionary.
        """

Additions

Changes