From 53ad7faeca06910bcca901ed5ae2a74029d43ec5 Mon Sep 17 00:00:00 2001 From: gac-x03da Date: Mon, 15 Nov 2021 14:42:20 +0100 Subject: [PATCH] Startup --- plugins/ScientaPanel.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/ScientaPanel.java b/plugins/ScientaPanel.java index a2463556..3521cae6 100644 --- a/plugins/ScientaPanel.java +++ b/plugins/ScientaPanel.java @@ -11,10 +11,12 @@ import ch.psi.pshell.epics.Scienta.EnergyMode; import ch.psi.pshell.epics.Scienta.LensMode; import ch.psi.pshell.plot.LinePlotSeries; import ch.psi.pshell.plot.Plot; +import ch.psi.utils.Arr; import ch.psi.utils.State; import ch.psi.utils.swing.SwingUtils; import java.awt.Component; import java.io.IOException; +import java.util.Arrays; import java.util.logging.Level; import javax.swing.DefaultComboBoxModel; import javax.swing.JComboBox; @@ -262,10 +264,8 @@ public final class ScientaPanel extends DevicePanel { if ((dd.spectrum == null)||(dd.spectrumX==null)) { throw new Exception("Invalid spectrum"); } - if (dd.spectrumX.length