added export of 3d calibration info in yaml
@@ -513,6 +513,7 @@ class ParametersDialog(QtGui.QDialog):
if path:
with open(path, 'r') as f:
self.z_calibration = yaml.load(f)
+ self.z_calibration_path = path
self.z_calib_label.setAlignment(QtCore.Qt.AlignRight)
self.z_calib_label.setText(os.path.basename(path))
self.fit_z_checkbox.setEnabled(True)
@@ -1247,6 +1248,9 @@ class Window(QtGui.QMainWindow):
localize_info = self.last_identification_info.copy()
localize_info['Generated by'] = 'Picasso Localize'
localize_info['Pixelsize'] = self.parameters_dialog.pixelsize.value()
+ if self.parameters_dialog.fit_z_checkbox.isChecked():
+ localize_info['Z Calibration Path'] = self.parameters_dialog.z_calibration_path
+ localize_info['Z Calibration'] = self.parameters_dialog.z_calibration
info = self.info + [localize_info]
io.save_locs(path, self.locs, info)
