Don't plot none values in interpolation analysis
None values should not be plotted by the InterpolationAnalysis2D
, and should instead be ignored.
In this example, I have run an adaptive SSRO readout optimisation experiment. SSRO fidelity is plotted as a function of readout amplitude and frequency using the InterpolationAnalysis2D
.
While the adaptive experiment was running, the optimisation algorithm sometimes tried to set the readout amplitude to a value greater than 0.5 V, which is greater than the maximum value allowed by the QRM. In these cases, a warning was given and the gettable returned a None value, which is to be expected. The experiment then continued to run as desired, gathering more datapoints within the amplitude range of the QRM.
This issue is that when running the InterpolationAnalysis2D
on this data, it plots all of the None values from datapoints where an invalid pulse amplitude was chosen. These are the red points in the white area on the figure above. Ideally we should simply not plot these points. The rest of the data in the figure is fine, but the None value points are not desired since they do not represent any real data that was actually taken.
We should modify InterpolationAnalysis2D
so as to ignore these unwanted datapoints.