finesse.solutions.array.ArraySolution.update

ArraySolution.update(self, int index, bool mask) int

Calling this will compute all detector outputs and add an entry to the outputs stored. Calling it multiple times without re-running the simulation will result in duplicate entries.

Parameters

index : (int, …)

Index to calculate the outputs for, use tuples of N-size for N-dimensional outputs

mask : boolean

Sets the index of all outputs to np.nan if true. This should be used when a recoverable invalidity has occurred at some point in the scan of a parameter of a simulation - e.g. invalid beam tracing due to instabilities.