thin_film.tolerancing.sensitivity_analysis

Sensitivity analysis for thin film stacks.

Sweeps each perturbation individually (requires RangeSampler) while evaluating all operands, following the pattern of optiland.tolerancing.sensitivity_analysis.

Classes

ThinFilmSensitivityAnalysis(tolerancing)

Sensitivity analysis for a thin-film tolerancing setup.

class ThinFilmSensitivityAnalysis(tolerancing: ThinFilmTolerancing)[source]

Sensitivity analysis for a thin-film tolerancing setup.

Parameters:

tolerancing – A configured ThinFilmTolerancing instance with at least one operand and one perturbation.

get_results() pandas.DataFrame[source]

Return the results DataFrame.

run() None[source]

Run the sensitivity analysis.

Each perturbation is swept individually while the others remain at their nominal values.

view(figsize: tuple[float, float] = (2.5, 3.3), sharex: Literal['none', 'all', 'row', 'col'] | bool = 'col', sharey: Literal['none', 'all', 'row', 'col'] | bool = 'row') tuple[Figure, list[Axes]][source]

Visualize sensitivity results as a grid of subplots.

Returns:

Tuple of (figure, flat list of axes).