示例#1
0
文件: input_view.py 项目: kif/UPBL09a
 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 "")
示例#2
0
文件: input_view.py 项目: kif/dahu
 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 "")
示例#3
0
文件: input_view.py 项目: kif/UPBL09a
 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 "")
示例#4
0
文件: input_view.py 项目: kif/UPBL09a
 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 "")
示例#5
0
文件: input_view.py 项目: kif/UPBL09a
 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 "")
示例#6
0
文件: input_view.py 项目: kif/dahu
 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 "")
示例#7
0
文件: input_view.py 项目: kif/dahu
 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 "")
示例#8
0
文件: input_view.py 项目: kif/dahu
 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 "")
示例#9
0
文件: input_view.py 项目: kif/UPBL09a
 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 "")
示例#10
0
文件: input_view.py 项目: kif/UPBL09a
 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 "")
示例#11
0
文件: input_view.py 项目: kif/UPBL09a
 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 "")
示例#12
0
文件: input_view.py 项目: kif/dahu
 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 "")
示例#13
0
文件: input_view.py 项目: kif/dahu
 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 "")
示例#14
0
文件: input_view.py 项目: kif/dahu
 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 "")