finesse.analysis.actions.series.ForSolution

Overview

class finesse.analysis.actions.series.ForSolution[source]

Bases: BaseSolution

Solution generated by a For Action.

Examples

A simple example printing some a varied laser power output. >>> import finesse >>> model = finesse.Model() >>> model.parse(‘’’ … l l1 … pd P l1.p1.o … ‘’’) >>> sol = model.run(‘for(l1.P, [0, 1, 2, 3], print(l1.P))’) 0.0 W 1.0 W 2.0 W 3.0 W >>> print(sol.values) [0, 1, 2, 3]

Attributes:
valuesarray_like

Array of values that were iterated over