NUPyLab Window
- class nupylab.utilities.nupylab_window.NupylabWindow(procedure_class: Type[NupylabProcedure], **kwargs)
Bases:
ManagedDockWindowDocked GUI window class.
NOTE: The parameter order in the procedure class attribute TABLE_PARAMETERS MUST MATCH the order of the corresponding table column labels.
Initialize main window GUI.
- Parameters:
procedure_class – NUPyLab procedure class to run.
**kwargs – optional keyword arguments that will be passed to
pymeasure.display.windows.managed_window.ManagedDockWindow
- new_curve(wdg, results, color=None, **kwargs)
- parameter_types = {<class 'pymeasure.experiment.parameters.BooleanParameter'>: <class 'bool'>, <class 'pymeasure.experiment.parameters.FloatParameter'>: <class 'float'>, <class 'pymeasure.experiment.parameters.IntegerParameter'>: <class 'int'>}
- queue(procedure=None) None
Queue all rows in parameters table. Overwrites parent method.
- staticMetaObject = PySide6.QtCore.QMetaObject("NupylabWindow" inherits "ManagedDockWindow": )
- verify_parameters(table_df: pd.DataFrame) pd.DataFrame
Verify shape of dataframe and attempt to convert datatype.
- Parameters:
table_df – Pandas dataframe representing parameters table in string format
- Returns:
- parameters table with each column converted to the dtype
specified in
parameter_types
- Return type:
converted_df
- Raises:
IndexError – if the number of columns in the parameter table does not match the number of expected columns.
ValueError – if the parameters table cannot be converted to the types listed in
parameter_types