diff --git a/bin/evaluate.py b/bin/evaluate.py index 7fbd533..beb6099 100755 --- a/bin/evaluate.py +++ b/bin/evaluate.py @@ -1,8 +1,11 @@ #!/usr/bin/env python3 import sys +import pathlib +sys.path.append(pathlib.Path().cwd().parent) +print(sys.path) # pyqtgraph warns on Mac if QApplication is created when it is imported -import pyqtgraph +# import pyqtgraph from nmreval.lib.logger import handle_exception sys.excepthook = handle_exception diff --git a/doc/source/_templates/autosummary/_class.rst b/doc/source/_templates/autosummary/_class.rst new file mode 100644 index 0000000..eae2e87 --- /dev/null +++ b/doc/source/_templates/autosummary/_class.rst @@ -0,0 +1,27 @@ +{{ objname | escape | underline}} + +Import as {{ fullname }} + +.. currentmodule:: {{ module }} + +.. autoclass:: {{ objname }} + + {% block methods %} + {% if methods %} + .. rubric:: {{ _('Methods') }} + + .. autosummary:: + :toctree: + + {% for item in methods %} + {%- if not item.startswith('_') %} + ~{{ name }}.{{ item }} + {%- endif %} + {%- endfor %} + {% endif %} + {% endblock %} + +.. minigallery:: {{module}}.{{objname}} + :add-heading: + + diff --git a/doc/source/_templates/autosummary/class_with_attributes.rst b/doc/source/_templates/autosummary/class_with_attributes.rst new file mode 100644 index 0000000..1755a3b --- /dev/null +++ b/doc/source/_templates/autosummary/class_with_attributes.rst @@ -0,0 +1,33 @@ +{{ fullname | escape | underline}} + +.. currentmodule:: {{ module }} + +.. autoclass:: {{ objname }} + + {% block methods %} + {% if methods %} + .. rubric:: {{ _('Methods') }} + + {% for item in methods %} + {% if not item.startswith('_') %} + .. automethod:: {{ item }} + {%- endif %} + {%- endfor %} + {% endif %} + {% endblock %} + + {% block attributes %} + {% if attributes %} + .. rubric:: {{ _('Attributes') }} + + {% for item in attributes %} + .. autoattribute:: {{ item }} + {%- endfor %} + {% endif %} + {% endblock %} + +.. include:: {{ fullname }}.examples + +.. raw:: html + +
diff --git a/resources/_rc/left.png b/resources/_rc/left.png new file mode 100644 index 0000000..7662e98 Binary files /dev/null and b/resources/_rc/left.png differ diff --git a/resources/_rc/right.png b/resources/_rc/right.png new file mode 100644 index 0000000..84caeff Binary files /dev/null and b/resources/_rc/right.png differ diff --git a/resources/icons/icons.json b/resources/icons/icons.json index 5c176e1..55651c4 100644 --- a/resources/icons/icons.json +++ b/resources/icons/icons.json @@ -24,7 +24,9 @@ "actionMouse_behaviour": "mouse", "menuNormalize": "normal", "action_mean_t1": "mean", - "menuLimits": "fit_region" + "menuLimits": "fit_region", + "actionPrevious": "left", + "actionNext_window": "right" }, "DataWidget": { "graph_toolButton": "new", diff --git a/resources/icons/normal_light/left.png b/resources/icons/normal_light/left.png new file mode 100644 index 0000000..4ec8a15 Binary files /dev/null and b/resources/icons/normal_light/left.png differ diff --git a/resources/icons/normal_light/right.png b/resources/icons/normal_light/right.png new file mode 100644 index 0000000..22f6fb8 Binary files /dev/null and b/resources/icons/normal_light/right.png differ diff --git a/resources/icons/pokemon_light/left.png b/resources/icons/pokemon_light/left.png new file mode 100644 index 0000000..7662e98 Binary files /dev/null and b/resources/icons/pokemon_light/left.png differ diff --git a/resources/icons/pokemon_light/right.png b/resources/icons/pokemon_light/right.png new file mode 100644 index 0000000..84caeff Binary files /dev/null and b/resources/icons/pokemon_light/right.png differ