def select_datafile(self): datafile = QtGui.QFileDialog.getOpenFileName() self.data_file.setText(datafile) datafile = str(datafile) if datafile and is_hdf5(datafile): path = HDF5Dialog.getPath(datafile) self.data_file_hdf5.setText(path or "")
def select_flatfield(self): logger.debug("select_flatfield") flatfield = str(QtGui.QFileDialog.getOpenFileName()) if flatfield: self.flat_field.setText(str_(flatfield)) self.do_flat.setChecked(True) if is_hdf5(flatfield): path = HDF5Dialog.getPath(flatfield) self.flat_field_hdf5.setText(path or "")
def select_darkcurrent(self): logger.debug("select_darkcurrent") darkcurrent = str(QtGui.QFileDialog.getOpenFileName()) if darkcurrent: self.dark_current.setText(str_(darkcurrent)) self.do_dark.setChecked(True) if is_hdf5(darkcurrent): path = HDF5Dialog.getPath(darkcurrent) self.dark_current_hdf5.setText(path or "")
def select_maskfile(self): logger.debug("select_maskfile") maskfile = str(QtGui.QFileDialog.getOpenFileName()) if maskfile: self.mask_file.setText(maskfile or "") self.do_mask.setChecked(True) if is_hdf5(maskfile): path = HDF5Dialog.getPath(maskfile) self.mask_file_hdf5.setText(path or "")
def select_dark_hdf5(self): logger.debug("select_dark_hdf5") datafile = str(self.dark_current.text()) if datafile and is_hdf5(datafile): path = HDF5Dialog.getPath(datafile) self.dark_current_hdf5.setText(path or "")
def select_flat_hdf5(self): logger.debug("select_flat_hdf5") datafile = str(self.flat_field.text()) if datafile and is_hdf5(datafile): path = HDF5Dialog.getPath(datafile) self.flat_field_hdf5.setText(path or "")
def select_mask_hdf5(self): logger.debug("select_mask_hdf5") datafile = str(self.mask_file.text()) if datafile and is_hdf5(datafile): path = HDF5Dialog.getPath(datafile) self.mask_file_hdf5.setText(path or "")