-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
aa6bc49
commit 9d4977e
Showing
24 changed files
with
86 additions
and
111 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,7 +38,6 @@ requirements: | |
- qtconsole | ||
- qtpy | ||
- setuptools | ||
- six | ||
|
||
test: | ||
imports: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,7 +23,6 @@ dependencies = [ | |
"ipython", | ||
"numpy", | ||
"matplotlib>=3.9.2", | ||
"six", | ||
"qtawesome", | ||
"pre-commit", | ||
"qtpy", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,33 @@ | ||
import abc | ||
from six import add_metaclass | ||
from abc import ABCMeta, abstractmethod | ||
|
||
|
||
@add_metaclass(abc.ABCMeta) | ||
class IPlot(object): | ||
__metaclass__ = ABCMeta | ||
|
||
@abc.abstractmethod | ||
@abstractmethod | ||
def window_closing(self): | ||
pass | ||
|
||
@abc.abstractmethod | ||
@abstractmethod | ||
def plot_options(self): | ||
pass | ||
|
||
@abc.abstractmethod | ||
@abstractmethod | ||
def plot_clicked(self, x, y): | ||
pass | ||
|
||
@abc.abstractmethod | ||
@abstractmethod | ||
def object_clicked(self, target): | ||
pass | ||
|
||
@abc.abstractmethod | ||
@abstractmethod | ||
def update_legend(self): | ||
pass | ||
|
||
@abc.abstractmethod | ||
@abstractmethod | ||
def get_line_options(self, line): | ||
pass | ||
|
||
@abc.abstractmethod | ||
@abstractmethod | ||
def set_line_options(self, line, line_options): | ||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,21 @@ | ||
import abc | ||
from six import add_metaclass | ||
from abc import ABCMeta, abstractmethod | ||
|
||
|
||
@add_metaclass(abc.ABCMeta) | ||
class DataLoaderPresenterInterface(object): | ||
__metaclass__ = ABCMeta | ||
|
||
@abc.abstractmethod | ||
@abstractmethod | ||
def register_master(self, main_view): | ||
pass | ||
|
||
@abc.abstractmethod | ||
@abstractmethod | ||
def load_workspace(self, file_paths, merge): | ||
pass | ||
|
||
@abc.abstractmethod | ||
@abstractmethod | ||
def _report_load_errors(self, ws_names, not_opened, not_loaded): | ||
pass | ||
|
||
@abc.abstractmethod | ||
@abstractmethod | ||
def workspace_selection_changed(self): | ||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,62 +1,61 @@ | ||
import abc | ||
from six import add_metaclass | ||
from abc import ABCMeta, abstractmethod | ||
|
||
|
||
@add_metaclass(abc.ABCMeta) | ||
class MainPresenterInterface(object): | ||
__metaclass__ = ABCMeta | ||
|
||
@abc.abstractmethod | ||
@abstractmethod | ||
def get_selected_workspaces(self): | ||
pass | ||
|
||
@abc.abstractmethod | ||
@abstractmethod | ||
def set_selected_workspaces(self, workspace_list): | ||
pass | ||
|
||
@abc.abstractmethod | ||
@abstractmethod | ||
def update_displayed_workspaces(self): | ||
pass | ||
|
||
@abc.abstractmethod | ||
@abstractmethod | ||
def notify_workspace_selection_changed(self): | ||
pass | ||
|
||
@abc.abstractmethod | ||
@abstractmethod | ||
def subscribe_to_workspace_selection_monitor(self, client): | ||
pass | ||
|
||
@abc.abstractmethod | ||
@abstractmethod | ||
def register_workspace_selector(self, workspace_selector): | ||
pass | ||
|
||
@abc.abstractmethod | ||
@abstractmethod | ||
def change_ws_tab(self, tab): | ||
pass | ||
|
||
@abc.abstractmethod | ||
@abstractmethod | ||
def highlight_ws_tab(self, tab): | ||
pass | ||
|
||
@abc.abstractmethod | ||
@abstractmethod | ||
def show_workspace_manager_tab(self): | ||
pass | ||
|
||
@abc.abstractmethod | ||
@abstractmethod | ||
def show_tab_for_workspace(self, ws): | ||
pass | ||
|
||
@abc.abstractmethod | ||
@abstractmethod | ||
def subscribe_to_energy_default_monitor(self, client): | ||
pass | ||
|
||
@abc.abstractmethod | ||
@abstractmethod | ||
def subscribe_to_cut_algo_default_monitor(self, client): | ||
pass | ||
|
||
@abc.abstractmethod | ||
@abstractmethod | ||
def is_energy_conversion_allowed(self): | ||
pass | ||
|
||
@abc.abstractmethod | ||
@abstractmethod | ||
def get_cut_algorithm(self): | ||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,21 @@ | ||
import abc | ||
from six import add_metaclass | ||
from abc import ABCMeta, abstractmethod | ||
|
||
|
||
@add_metaclass(abc.ABCMeta) | ||
class PlotSelectorPresenterInterface(object): | ||
__metaclass__ = ABCMeta | ||
|
||
@abc.abstractmethod | ||
@abstractmethod | ||
def register_master(self, main_view): | ||
pass | ||
|
||
# @abc.abstractmethod | ||
# @abstractmethod | ||
# def load_workspace(self, file_paths, merge): | ||
# pass | ||
# | ||
# @abc.abstractmethod | ||
# @abstractmethod | ||
# def _report_load_errors(self, ws_names, not_opened, not_loaded): | ||
# pass | ||
|
||
# @abc.abstractmethod | ||
# @abstractmethod | ||
# def workspace_selection_changed(self): | ||
# pass |
11 changes: 5 additions & 6 deletions
11
src/mslice/presenters/interfaces/powder_projection_presenter.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,17 @@ | ||
import abc | ||
from six import add_metaclass | ||
from abc import ABCMeta, abstractmethod | ||
|
||
|
||
@add_metaclass(abc.ABCMeta) | ||
class PowderProjectionPresenterInterface(object): | ||
__metaclass__ = ABCMeta | ||
|
||
@abc.abstractmethod | ||
@abstractmethod | ||
def register_master(self, main_view): | ||
pass | ||
|
||
@abc.abstractmethod | ||
@abstractmethod | ||
def notify(self, command): | ||
pass | ||
|
||
@abc.abstractmethod | ||
@abstractmethod | ||
def workspace_selection_changed(self): | ||
pass |
11 changes: 5 additions & 6 deletions
11
src/mslice/presenters/interfaces/slice_plotter_presenter.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,17 @@ | ||
import abc | ||
from six import add_metaclass | ||
from abc import ABCMeta, abstractmethod | ||
|
||
|
||
@add_metaclass(abc.ABCMeta) | ||
class SlicePlotterPresenterInterface(object): | ||
__metaclass__ = ABCMeta | ||
|
||
@abc.abstractmethod | ||
@abstractmethod | ||
def register_master(self, main_view): | ||
pass | ||
|
||
@abc.abstractmethod | ||
@abstractmethod | ||
def notify(self, command): | ||
pass | ||
|
||
@abc.abstractmethod | ||
@abstractmethod | ||
def workspace_selection_changed(self): | ||
pass |
Oops, something went wrong.