Detector output format in PyKat when using x2axis in Finesse
With one xaxis
and yaxis abs:deg
or yaxis re:im
, the output from out['detector_name']
is an array of complex numbers.
If we add an x2axis
, the output from out['detector_name']
is a 3D matrix, where for
-
yaxis re:im
the output fromout['detector_name'][0]
is a 2D matrix with the real parts andout['detector_name'][1]
is a 2D matrix with the imaginary parts. -
yaxis abs:deg
the output fromout['detector_name'][0]
is a 2D matrix with the absolute values andout['detector_name'][1]
is a 2D matrix with the phases in degrees.
I think the outputs with one and two x-axes should be consistent. I suggest that we change the output when using x2axis into complex number as well.