moved *Description classes into descs folder
This commit is contained in:
@ -22,11 +22,11 @@ Via the RPC server, new plots can be created and new data appended to existing p
|
|||||||
|
|
||||||
- `new_plot(name, cfg)`
|
- `new_plot(name, cfg)`
|
||||||
|
|
||||||
Creates a new plot named `name` in the grum list. The configuration dict `cfg` is used as arguments for the constructor of [`PlotDescription`](https://gitlab.psi.ch/augustin_s/grum/-/blob/master/grum/plotdesc.py#L4).
|
Creates a new plot named `name` in the grum list. The configuration dict `cfg` is used as arguments for the constructor of [`PlotDescription`](https://gitlab.psi.ch/augustin_s/grum/-/blob/master/grum/descs/plotdesc.py#L4).
|
||||||
|
|
||||||
- `append_data(name, point)`
|
- `append_data(name, point)`
|
||||||
|
|
||||||
Append data point to the plot named `name`. The new `point` is forwarded to [`PlotDescription.append()`](https://gitlab.psi.ch/augustin_s/grum/-/blob/master/grum/plotdesc.py#L18).
|
Append data point to the plot named `name`. The new `point` is forwarded to [`PlotDescription.append()`](https://gitlab.psi.ch/augustin_s/grum/-/blob/master/grum/descs/plotdesc.py#L18).
|
||||||
|
|
||||||
### Utility functions
|
### Utility functions
|
||||||
|
|
||||||
|
5
grum/descs/__init__.py
Normal file
5
grum/descs/__init__.py
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
|
||||||
|
from .imgdesc import ImageDescription
|
||||||
|
from .plotdesc import PlotDescription
|
||||||
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
|||||||
import numpy as np
|
import numpy as np
|
||||||
|
|
||||||
from .plotdesc import PlotDescription
|
from .descs import PlotDescription
|
||||||
|
|
||||||
|
|
||||||
X = np.arange(100) / 10
|
X = np.arange(100) / 10
|
||||||
|
@ -8,8 +8,7 @@ from .h5filedlg import open_h5_files_dialog, save_h5_file_dialog
|
|||||||
from .io import write_dict, read_dict
|
from .io import write_dict, read_dict
|
||||||
from .mdi import MDIArea, MDISubMultiPlot, MDISubPlot, MDISubImage, MDIWindowMode
|
from .mdi import MDIArea, MDISubMultiPlot, MDISubPlot, MDISubImage, MDIWindowMode
|
||||||
from .menus import BarMenu
|
from .menus import BarMenu
|
||||||
from .plotdesc import PlotDescription
|
from .descs import PlotDescription, ImageDescription
|
||||||
from .imgdesc import ImageDescription
|
|
||||||
from .rpc import RPCServerThread
|
from .rpc import RPCServerThread
|
||||||
from .shortcut import shortcut
|
from .shortcut import shortcut
|
||||||
from .webview import WebView
|
from .webview import WebView
|
||||||
|
@ -14,7 +14,7 @@ from grum.mainwin import MainWindow
|
|||||||
from grum.mdi import MDIArea, MDISubMultiPlot, MDISubPlot
|
from grum.mdi import MDIArea, MDISubMultiPlot, MDISubPlot
|
||||||
from grum.menus import BarMenu
|
from grum.menus import BarMenu
|
||||||
from grum.menus.rclickmenu import RClickMenu
|
from grum.menus.rclickmenu import RClickMenu
|
||||||
from grum.plotdesc import PlotDescription
|
from grum.descs import PlotDescription
|
||||||
from grum.rpc import RPCServerThread
|
from grum.rpc import RPCServerThread
|
||||||
|
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@ import pyqtgraph as pg
|
|||||||
from grum import theme
|
from grum import theme
|
||||||
from grum.mainwin import MainWindow
|
from grum.mainwin import MainWindow
|
||||||
from grum.mdi.mdisubplot import MDISubPlot
|
from grum.mdi.mdisubplot import MDISubPlot
|
||||||
from grum.plotdesc import PlotDescription
|
from grum.descs import PlotDescription
|
||||||
from grum.theme import pg_plot_style
|
from grum.theme import pg_plot_style
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user