diff --git a/config/energy_scan.properties b/config/energy_scan.properties index 9fb7272..29cc64b 100644 --- a/config/energy_scan.properties +++ b/config/energy_scan.properties @@ -1 +1,9 @@ -Fe=680.0;750.0;2.0;10.0;0.0;0.0 +Cr2x2=560.0;610.0;2.0;10.0;1.9;0.9 +V=505.0;540.0;2.0;10.0;-5.1;-5.7 +Ni=825.0;890.0;2.0;10.0;-8.6;-10.4 +O=500.0;560.0;2.0;10.0;-5.1;-5.7 +Gd=1170.0;1240.0;2.0;10.0;-13.0;-11.5 +Cr=560.0;610.0;2.0;10.0;-6.2;-7.2 +Co=750.0;825.0;2.0;10.0;-8.8;-9.5 +Mn=620.0;670.0;2.0;10.0;-6.7;-8.1 +Fe=680.0;750.0;2.0;10.0;-7.2;-9.0 diff --git a/config/plugins.properties b/config/plugins.properties index 91c8094..eb3bea4 100644 --- a/config/plugins.properties +++ b/config/plugins.properties @@ -1,2 +1,2 @@ -/sls/X11MA/data/X11MA/pshell/home/plugins/EnergyScan.java=enabled -/sls/X11MA/data/X11MA/pshell/home/plugins/Test.java=disabled +EnergyScan.java=enabled +Test.java=disabled diff --git a/plugins/EnergyScan.form b/plugins/EnergyScan.form index 64ae2a4..33183c4 100644 --- a/plugins/EnergyScan.form +++ b/plugins/EnergyScan.form @@ -4,6 +4,8 @@ + + @@ -30,11 +32,10 @@ - + - + - @@ -97,13 +98,13 @@ - + - + @@ -153,7 +154,7 @@ - + @@ -282,7 +283,6 @@ - @@ -315,16 +315,20 @@ - + - - - - - - + + + - + + + + + + + + @@ -334,10 +338,21 @@ + - - - + + + + + + + + + + + + + @@ -368,6 +383,30 @@ + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/plugins/EnergyScan.java b/plugins/EnergyScan.java index 9ba5b1d..39697e1 100644 --- a/plugins/EnergyScan.java +++ b/plugins/EnergyScan.java @@ -107,6 +107,7 @@ public class EnergyScan extends Panel { args.put("ROUNDS", (Integer) spinnerRounds.getValue()); args.put("PLOT_TYPE", radioK1.isSelected() ? 1 : 2); args.put("SET_OFFSETS", jCheckBox1.isSelected() ? 1 : 2); + args.put("ID_TYPE", buttonGroup1.getSelection().toString()); buttonAbort.setEnabled(true); @@ -175,6 +176,7 @@ public class EnergyScan extends Panel { private void initComponents() { buttonGroupPlot = new javax.swing.ButtonGroup(); + buttonGroup1 = new javax.swing.ButtonGroup(); panelParameters = new javax.swing.JPanel(); jLabel1 = new javax.swing.JLabel(); spinnerE1 = new javax.swing.JSpinner(); @@ -199,6 +201,9 @@ public class EnergyScan extends Panel { buttonExecute = new javax.swing.JButton(); buttonAbort = new javax.swing.JButton(); jCheckBox1 = new javax.swing.JCheckBox(); + jRadioButton2 = new javax.swing.JRadioButton(); + jRadioButton1 = new javax.swing.JRadioButton(); + jRadioButton3 = new javax.swing.JRadioButton(); panelSetup = new javax.swing.JPanel(); comboSetup = new javax.swing.JComboBox(); buttonConfigure = new javax.swing.JButton(); @@ -248,7 +253,6 @@ public class EnergyScan extends Panel { jLabel12.setText("Plot Type:"); buttonGroupPlot.add(radioK1); - radioK1.setSelected(true); radioK1.setText("K2 / K1"); radioK1.setMinimumSize(new java.awt.Dimension(100, 22)); radioK1.addActionListener(new java.awt.event.ActionListener() { @@ -299,11 +303,11 @@ public class EnergyScan extends Panel { .addComponent(jLabel11) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(comboRunType, javax.swing.GroupLayout.PREFERRED_SIZE, 105, javax.swing.GroupLayout.PREFERRED_SIZE) - .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 112, Short.MAX_VALUE) .addComponent(jLabel5) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(spinnerRounds, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))) - .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) + .addContainerGap(112, Short.MAX_VALUE)) .addGroup(panelParametersLayout.createSequentialGroup() .addComponent(jLabel12) .addGap(18, 18, 18) @@ -379,29 +383,50 @@ public class EnergyScan extends Panel { } }); + buttonGroup1.add(jRadioButton2); + jRadioButton2.setText("ID2"); + + buttonGroup1.add(jRadioButton1); + jRadioButton1.setText("ID1"); + + buttonGroup1.add(jRadioButton3); + jRadioButton3.setText("ID1+ID2"); + javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3); jPanel3.setLayout(jPanel3Layout); jPanel3Layout.setHorizontalGroup( jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel3Layout.createSequentialGroup() - .addContainerGap(234, Short.MAX_VALUE) + .addContainerGap() .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) - .addComponent(buttonAbort, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE) - .addGroup(jPanel3Layout.createSequentialGroup() - .addComponent(buttonExecute, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE) - .addGap(18, 18, 18) - .addComponent(jCheckBox1))) - .addContainerGap(118, Short.MAX_VALUE)) + .addComponent(jRadioButton1) + .addComponent(jRadioButton2) + .addComponent(jRadioButton3)) + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) + .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) + .addComponent(buttonExecute, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE) + .addComponent(buttonAbort, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)) + .addGap(18, 18, 18) + .addComponent(jCheckBox1) + .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) ); jPanel3Layout.setVerticalGroup( jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel3Layout.createSequentialGroup() .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(buttonExecute) - .addComponent(jCheckBox1)) - .addGap(10, 10, 10) - .addComponent(buttonAbort) - .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) + .addComponent(jCheckBox1) + .addComponent(jRadioButton1)) + .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(jPanel3Layout.createSequentialGroup() + .addGap(16, 16, 16) + .addComponent(buttonAbort)) + .addGroup(jPanel3Layout.createSequentialGroup() + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) + .addComponent(jRadioButton2) + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) + .addComponent(jRadioButton3))) + .addContainerGap(13, Short.MAX_VALUE)) ); panelSetup.setBorder(javax.swing.BorderFactory.createTitledBorder("Setup")); @@ -458,11 +483,10 @@ public class EnergyScan extends Panel { .addGroup(layout.createSequentialGroup() .addGap(16, 16, 16) .addComponent(panelParameters, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) - .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) + .addGap(18, 18, 18) .addComponent(panelSetup, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) - .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) - .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) - .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 8, Short.MAX_VALUE) + .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) ); }// //GEN-END:initComponents @@ -527,6 +551,7 @@ public class EnergyScan extends Panel { private javax.swing.JButton buttonAbort; private javax.swing.JButton buttonConfigure; private javax.swing.JButton buttonExecute; + private javax.swing.ButtonGroup buttonGroup1; private javax.swing.ButtonGroup buttonGroupPlot; private javax.swing.JComboBox comboRunType; private javax.swing.JComboBox comboSetup; @@ -542,6 +567,9 @@ public class EnergyScan extends Panel { private javax.swing.JLabel jLabel5; private javax.swing.JLabel jLabel8; private javax.swing.JPanel jPanel3; + private javax.swing.JRadioButton jRadioButton1; + private javax.swing.JRadioButton jRadioButton2; + private javax.swing.JRadioButton jRadioButton3; private javax.swing.JPanel panelParameters; private javax.swing.JPanel panelSetup; private javax.swing.JRadioButton radioK1; diff --git a/script/local.py b/script/local.py index fe9a918..3caae2c 100644 --- a/script/local.py +++ b/script/local.py @@ -7,6 +7,7 @@ OTF_START = "X11MA-OTF:GO" OTF_E1 = "X11MA-OTF:E1" OTF_E2 = "X11MA-OTF:E2" OTF_TIME = "X11MA-OTF:TIME" +OTF_IDTYPE = "X11MA-OTF:ID_TYPE" OTF_FID = "X11MA-OTF:FID" OTF_FTS = "X11MA-OTF:FTSTAMP" OTF_FILE = "X11MA-OTF:FNAME"