예제 #1
0
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
예제 #2
0
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
예제 #3
0
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
예제 #4
0
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
예제 #5
0
 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()
예제 #6
0
 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()