Beispiel #1
0
    def init_from_save(cls, save, dependencies, tab_widget=None):
        model = SlicedDataTabModel()
        model.restore_state(save['model'])
        self = cls(model)

        self.slider.restore_state(save['slider'])
        self.interpolation.restore_state(save['interpolation'])
        self.crosshair.restore_state(save['crosshair'])
        self.colormap.restore_state(save['colormap'])
        self.plot_item.set_levels(save['levels'])
        self.plot_item.set_colormap(save['colorscale'])

        return self 
Beispiel #2
0
    def init_from_path(cls, path):

        model = SlicedDataTabModel()
        model.load_data_from_path(path)

        return cls(model)
Beispiel #3
0
    def init_from_cube(cls, URL):

        model = SlicedDataTabModel()
        model.load_data_from_cube(URL)

        return cls(model)
Beispiel #4
0
    def init_from_URLs(cls, URLs):

        model = SlicedDataTabModel()
        model.load_data_from_URLs(URLs)

        return cls(model)