read pixelsize from camera config
@@ -410,6 +410,15 @@ class ParametersDialog(QtGui.QDialog):
self.qe.setSingleStep(0.1)
photon_grid.addWidget(self.qe, 3, 1)
+
+ # QE
+ photon_grid.addWidget(QtGui.QLabel('Pixelsize (nm):'), 4, 0)
+ self.pixelsize = QtGui.QSpinBox()
+ self.pixelsize.setRange(0, 1000)
+ self.pixelsize.setValue(130)
+ self.pixelsize.setSingleStep(1)
+ photon_grid.addWidget(self.pixelsize, 4, 1)
+
# Fit Settings
fit_groupbox = QtGui.QGroupBox('Fit Settings')
vbox.addWidget(fit_groupbox)
@@ -519,6 +528,8 @@ class ParametersDialog(QtGui.QDialog):
cam_config = CONFIG['Cameras'][camera]
if 'Baseline' in cam_config:
self.baseline.setValue(cam_config['Baseline'])
+ if 'Pixelsize' in cam_config:
+ self.pixelsize.setValue(cam_config['Pixelsize'])
self.update_sensitivity()
self.update_qe()
@@ -1234,6 +1245,7 @@ class Window(QtGui.QMainWindow):
def save_locs(self, path):
localize_info = self.last_identification_info.copy()
localize_info['Generated by'] = 'Picasso Localize'
+ localize_info['Pixelsize'] = self.parameters_dialog.pixelsize.value()
info = self.info + [localize_info]
io.save_locs(path, self.locs, info)
