def load_fit(filename=None): """Unimplemented""" if filename == None: filename = file_tools.file_dialog() fit_data = data_holder.FitData(filename) fit_dataview = data_view.FitDataView() return fit_data, fit_dataview
def load_fit(filename=None): """Unimplemented""" if filename==None: filename = file_tools.file_dialog() fit_data = data_holder.FitData(filename) fit_dataview = data_view.FitDataView() return fit_data, fit_dataview
def load_data(filename=None): """Loads Cubereader HDF5 file""" if filename == None: filename = file_tools.file_dialog() data = data_holder.Data(filename) maxval = analysis.find_maxval(data.ycube[...]) dimensions = analysis.get_dimensions(data.ycube) dataview = data_view.DataView(maxval, dimensions) return data, dataview
def load_data(filename=None): """Loads Cubereader HDF5 file""" if filename==None: filename = file_tools.file_dialog() data = data_holder.Data(filename) maxval = analysis.find_maxval(data.ycube[...]) dimensions = analysis.get_dimensions(data.ycube) dataview = data_view.DataView(maxval, dimensions) return data, dataview
def __init__(self, cube=None, parent=None): QtGui.QMainWindow.__init__(self, parent) if cube == None: filename = file_tools.file_dialog() cube = file_tools.load_data(filename) self.data = cube[0] self.dataview = cube[1] self.maxval = self.dataview.maxval self.bool_press = False self.create_main_frame()
def __init__(self,cube=None, parent=None): QtGui.QMainWindow.__init__(self, parent) if cube == None: filename = file_tools.file_dialog() cube = file_tools.load_data(filename) self.data = cube[0] self.dataview = cube[1] self.maxval = self.dataview.maxval self.bool_press = False self.create_main_frame() self.sizeHint()