Loading src/main/java/Aberration_Calibration.java +5 −7 Original line number Diff line number Diff line Loading @@ -4084,7 +4084,7 @@ if (MORE_BUTTONS) { this.SYNC_COMMAND.stopRequested); FOCUSING_FIELD.setDebugLevel(DEBUG_LEVEL); FOCUSING_FIELD.setAdjustMode(false); if (PROPERTIES!=null) FOCUSING_FIELD.getProperties("FOCUSING_FIELD.", PROPERTIES); if (PROPERTIES!=null) FOCUSING_FIELD.getProperties("FOCUSING_FIELD.", PROPERTIES, true); MOTORS.addCurrentHistoryToFocusingField(FOCUSING_FIELD); System.out.println("Saving measurement history to "+path); FOCUSING_FIELD.saveXML(path); Loading Loading @@ -4424,7 +4424,7 @@ if (MORE_BUTTONS) { this.SYNC_COMMAND.stopRequested); FOCUSING_FIELD.setDebugLevel(DEBUG_LEVEL); FOCUSING_FIELD.setAdjustMode(false); if (PROPERTIES!=null) FOCUSING_FIELD.getProperties("FOCUSING_FIELD.", PROPERTIES); if (PROPERTIES!=null) FOCUSING_FIELD.getProperties("FOCUSING_FIELD.", PROPERTIES,true); // keep distortions center from history System.out.println("Loaded FocusingField"); if (!FOCUSING_FIELD.configureDataVector( true, // boolean silent (maybe add option with false to change number of parameters?) Loading Loading @@ -5140,7 +5140,7 @@ if (MORE_BUTTONS) { this.SYNC_COMMAND.stopRequested); ff.setDebugLevel(DEBUG_LEVEL); ff.setAdjustMode(false); if (PROPERTIES!=null) ff.getProperties("FOCUSING_FIELD.", PROPERTIES); if (PROPERTIES!=null) ff.getProperties("FOCUSING_FIELD.", PROPERTIES,true); MOTORS.addCurrentHistoryToFocusingField( ff, (runs==0)?0:(MOTORS.historySize()-runs), Loading Loading @@ -5241,7 +5241,7 @@ if (MORE_BUTTONS) { this.SYNC_COMMAND.stopRequested); ff.setDebugLevel(DEBUG_LEVEL); ff.setAdjustMode(false); if (PROPERTIES!=null) ff.getProperties("FOCUSING_FIELD.", PROPERTIES); if (PROPERTIES!=null) ff.getProperties("FOCUSING_FIELD.", PROPERTIES,true); MOTORS.addCurrentHistoryToFocusingField(ff); // all, not just newly acquired if (MASTER_DEBUG_LEVEL>0){ System.out.println ("*** Calculating focal distance shift for each of "+MOTORS.historySize()+" recorded measurments ***"); Loading Loading @@ -13510,11 +13510,9 @@ private double [][] jacobianByJacobian(double [][] jacobian, boolean [] mask) { MOTORS.focusingHistory.getProperties("FOCUSING_HISTORY.", properties); GONIOMETER_PARAMETERS.getProperties("GONIOMETER_PARAMETERS.", properties); ABERRATIONS_PARAMETERS.getProperties("ABERRATIONS_PARAMETERS.", properties); if (FOCUSING_FIELD!=null) FOCUSING_FIELD.getProperties("FOCUSING_FIELD.", properties); if (FOCUSING_FIELD!=null) FOCUSING_FIELD.getProperties("FOCUSING_FIELD.", properties,false); // false -> overwrite distortions center } private String selectSourceDirectory(String defaultPath) { return CalibrationFileManagement.selectDirectory(false, // save "Source calibration superdirectory selection (should have 1-1...3-3 subdirectories)", // title src/main/java/FocusingField.java +255 −20 File changed.Preview size limit exceeded, changes collapsed. Show changes Loading
src/main/java/Aberration_Calibration.java +5 −7 Original line number Diff line number Diff line Loading @@ -4084,7 +4084,7 @@ if (MORE_BUTTONS) { this.SYNC_COMMAND.stopRequested); FOCUSING_FIELD.setDebugLevel(DEBUG_LEVEL); FOCUSING_FIELD.setAdjustMode(false); if (PROPERTIES!=null) FOCUSING_FIELD.getProperties("FOCUSING_FIELD.", PROPERTIES); if (PROPERTIES!=null) FOCUSING_FIELD.getProperties("FOCUSING_FIELD.", PROPERTIES, true); MOTORS.addCurrentHistoryToFocusingField(FOCUSING_FIELD); System.out.println("Saving measurement history to "+path); FOCUSING_FIELD.saveXML(path); Loading Loading @@ -4424,7 +4424,7 @@ if (MORE_BUTTONS) { this.SYNC_COMMAND.stopRequested); FOCUSING_FIELD.setDebugLevel(DEBUG_LEVEL); FOCUSING_FIELD.setAdjustMode(false); if (PROPERTIES!=null) FOCUSING_FIELD.getProperties("FOCUSING_FIELD.", PROPERTIES); if (PROPERTIES!=null) FOCUSING_FIELD.getProperties("FOCUSING_FIELD.", PROPERTIES,true); // keep distortions center from history System.out.println("Loaded FocusingField"); if (!FOCUSING_FIELD.configureDataVector( true, // boolean silent (maybe add option with false to change number of parameters?) Loading Loading @@ -5140,7 +5140,7 @@ if (MORE_BUTTONS) { this.SYNC_COMMAND.stopRequested); ff.setDebugLevel(DEBUG_LEVEL); ff.setAdjustMode(false); if (PROPERTIES!=null) ff.getProperties("FOCUSING_FIELD.", PROPERTIES); if (PROPERTIES!=null) ff.getProperties("FOCUSING_FIELD.", PROPERTIES,true); MOTORS.addCurrentHistoryToFocusingField( ff, (runs==0)?0:(MOTORS.historySize()-runs), Loading Loading @@ -5241,7 +5241,7 @@ if (MORE_BUTTONS) { this.SYNC_COMMAND.stopRequested); ff.setDebugLevel(DEBUG_LEVEL); ff.setAdjustMode(false); if (PROPERTIES!=null) ff.getProperties("FOCUSING_FIELD.", PROPERTIES); if (PROPERTIES!=null) ff.getProperties("FOCUSING_FIELD.", PROPERTIES,true); MOTORS.addCurrentHistoryToFocusingField(ff); // all, not just newly acquired if (MASTER_DEBUG_LEVEL>0){ System.out.println ("*** Calculating focal distance shift for each of "+MOTORS.historySize()+" recorded measurments ***"); Loading Loading @@ -13510,11 +13510,9 @@ private double [][] jacobianByJacobian(double [][] jacobian, boolean [] mask) { MOTORS.focusingHistory.getProperties("FOCUSING_HISTORY.", properties); GONIOMETER_PARAMETERS.getProperties("GONIOMETER_PARAMETERS.", properties); ABERRATIONS_PARAMETERS.getProperties("ABERRATIONS_PARAMETERS.", properties); if (FOCUSING_FIELD!=null) FOCUSING_FIELD.getProperties("FOCUSING_FIELD.", properties); if (FOCUSING_FIELD!=null) FOCUSING_FIELD.getProperties("FOCUSING_FIELD.", properties,false); // false -> overwrite distortions center } private String selectSourceDirectory(String defaultPath) { return CalibrationFileManagement.selectDirectory(false, // save "Source calibration superdirectory selection (should have 1-1...3-3 subdirectories)", // title
src/main/java/FocusingField.java +255 −20 File changed.Preview size limit exceeded, changes collapsed. Show changes