The premade_loader module
A loader and filter system for premade experiments.
Classes
PremadeManager
-
class src.gui.main.premade_loader.PremadeManager[source]
A class for managing and filtering premade experiments.
Methods
-
getFiltered(measurementType, cryostat, voltageMode, devices)[source]
Return the items which pass through the filtering parameters.
Any of the parameters may be ‘All’, in which case that filter
parameter will not have any effect on the output list. Any input
which is not ‘All’ must be in a particular premade’s signature
in order to be returned.
Parameters : | measurementType : str
The measurement type string.
cryostat : str
voltageMode : str
The voltage mode (either ‘AC’ or ‘DC’ in most cases)
devices : str
An integer string representing the number of devices to measure.
|
Returns : | tuple of list :
A two-element tuple. The first element is a list of the names
of the experiments which match the filter conditions. The second
element is a list of classes corresponding to the names in the
first list.
|
-
getStrings()[source]
Return a list of strings representing possible filter values.
Returns : | tuple of list of str :
A 4-tuple of lists of strings. The first list contains the
recognized measurement types. The second contains the names of
the cryostats. The third contains the valid source voltage modes
(usually either ‘AC’ or ‘DC’ or both) used in the premades.
The last list contains the numbers of devices which are represented
in the premades.
|
PremadeFrame
-
class src.gui.main.premade_loader.PremadeFrame(parent)[source]
A frame for managing and loading premade experiments.
Parameters : | parent : wxWindow
The panel or frame which owns this frame.
|
Methods
Functions
-
src.gui.main.premade_loader.constructListBox(parent, sizer, label, items, handler=None)[source]
Construct a list box.
Parameters : | parent : wxWindow
The parent or frame which should own the list box.
sizer : wxSizer
The sizer into which the list box’s panel should go.
label : str
The label for the list box’s static frame.
items : list of str
The strings which should serve as the list box’s initial data.
handler : method
The method which should be called when the list box’s selection
changes.
|
Returns : | wxListBox :
|