Creating results for analyses that have complex results requires managing both
real and imaginary values. The method SetValues() is used to
set values to the real part of the result. A second method,
SetImaginaryValues(), is also available to set values to
the imaginary part of the result.
An example of the creation of a complex result follows:
def Evaluate(result,stepInfo,collector):
for id in collectors.Ids:
real_value = 1.
# Set the real part of the result
collector.SetValues(id, real_value)
imaginary_value = 2.
# Set the imaginary part of the result
collector.SetImaginaryValues(id, imaginary_value)