post_treaters module
Define the functions used by SimulationOutputEvaluator.
They are dedicated to treat data. They all take a value and a reference value as arguments and return the treated value (ref is unchanged).
- do_nothing(value: ndarray | float, ref_value: ndarray | float, **kwargs: bool) ndarray | float
Hold the place for a post treater.
If you want to plot the data as imported from the
SimulationOutput, set the first of thepost_treaterskeys to: partial(_do_nothing, to_plot=True)
- set_first_value_to(*args: ndarray, value: float, **kwargs: bool) ndarray
Set first element of array to
value, sometimes bugs in TW output.
- difference(value: float, reference_value: float, **kwargs: bool) float
- difference(value: ndarray, reference_value: ndarray, **kwargs: bool) ndarray
Compute the difference.
- relative_difference(value: float, reference_value: float, **kwargs: bool) float
- relative_difference(value: ndarray, reference_value: ndarray, **kwargs: bool) ndarray
Compute the relative difference.
- absolute(*args: float, **kwargs: bool) float
- absolute(*args: ndarray, **kwargs: bool) ndarray
Return the absolute
value.