src.gui package
Submodules
src.gui.canvasManager module
- class src.gui.canvasManager.CanvasManager(parent=None, wid=8, hgt=8, dpi=100, plotName='', log='', cursorState='off')[source]
Bases:
FigureCanvasQTAgg
Manages the plot canvas for the GUI.
- plot_dual_peaks(xpA, ypA, peakA, rmsA, xpB, ypB, peakB, rmsB, x=[], y=[], title='Peak fitted data')[source]
plot peak fits overlayed on drift scans.
- plot_peak(xp, yp, peak, rms, x=[], y=[], title='Peak fitted data')[source]
Pleat peak fit overlayed on drift scan.
src.gui.edit_driftscan_window module
src.gui.edit_driftscan_window1 module
src.gui.edit_timeseries_window module
src.gui.mainGuiLogic module
- class src.gui.mainGuiLogic.Main(log)[source]
Bases:
QMainWindow
,Ui_MainWindow
The main class that handles all gui operations.
- create_tag(ind)[source]
Create a tag for the plots according to the current scan being processed. e.g. ONRCP
- get_plot_index()[source]
Get the current plot index. Deliberately set to ind+1 to account for offset.
- on_filter_type_combobox_changed()[source]
Handle events related to the filter type combobox option change.
- open_file_name_dialog(ext)[source]
Open file. Had to use this to avoid segmentation fault: 11 error
- reset_dict(filter_key1, filter_key2='')[source]
Reset the data dictionary containing the driftscan keys
- set_fit_parmeters(bf=0, pf=0, ps=0)[source]
Initialize fit status parameters. These are parameters that tell us wether a certain part of the scan has been fit or not. The status of the fit can be either 0 (data not fit yet) or 1 (data fitting has been done) for the current scan. A smoothing parameter is also included to let us know if smoothing has been done on the original data.
By default, all the parameters are set to zero.
- set_flags(flag=100)[source]
Set base flags. FLAGS = 100 # Source was manually edited/reduced by user This becomes the default for all flags if you save to DB while using the GUI.
src.gui.main_window module
src.gui.main_window1 module
src.gui.secondaryCanvasManager module
- class src.gui.secondaryCanvasManager.SecondaryCanvasManager(parent=None, wid=5, hgt=6, dpi=100, plotName='', log='')[source]
Bases:
FigureCanvasQTAgg
Manages the plot canvas for the GUI.
src.gui.timeseries_canvas module
- class src.gui.timeseries_canvas.TimeCanvas(parent=None, wid=10, hgt=8, dpi=100, plotName='', log='')[source]
Bases:
FigureCanvasQTAgg
- plot_dual_fig(x=[], y=[], x1=[], y1=[], xlab='', ylab='', title='Main database plot window', col='C0.', data='')[source]
Plot a figure.
A helper function to make a graph
- axAxes
The axes to draw to
data1 : array The x data
data2 : array The y data
param_dict : dict Dictionary of kwargs to pass to ax.plot
- outlist
list of artists added
- plot_fig(x=[], y=[], xlab='', ylab='', title='Main database plot window', col='C0.', data='', yerr=[])[source]
Plot a figure.
A helper function to make a graph
- axAxes
The axes to draw to
data1 : array The x data
data2 : array The y data
param_dict : dict Dictionary of kwargs to pass to ax.plot
- outlist
list of artists added
- plot_fig_errs(x=[], y=[], xlab='', ylab='', title='Main database plot window', col='C0.', errs=[], data='')[source]
Plot a figure with errorbars.
A helper function to make a graph
- axAxes
The axes to draw to
data1 : array The x data
data2 : array The y data
param_dict : dict Dictionary of kwargs to pass to ax.plot
- outlist
list of artists added