Post-processor Settings#
The available GEMSEO post-processors require different configuration settings to be executed. There are two ways to pass post-processor settings, either one by one:
scenario.post_process(
post_name="BasicHistory", variable_names=["x_shared"], save=False, show=True
)
or via their associated Pydantic model:
from gemseo.settings.post import BasicHistory_Settings
scenario.post_process(
settings_model=BasicHistory_Settings(variable_names=["x_shared"], save=False, show=True)
)
The advantage of using the Pydantic model directly is that IDEs provide auto completion for Pydantic models. Another advantage is that the settings are validated at instantiation of the Pydantic model, so in case a setting name or setting value is not valid, the validation exception will happen before the execution of the post-processor, thus saving time.