catalight.analysis.user_inputs.PlotOptionList

class catalight.analysis.user_inputs.PlotOptionList(reactant: Option = Option(value='', include=False, label='Reactant', tooltip='String identity of reactant molecule to track.\nMust match what exists in the calibration file exactly.', widget=PyQt5.QtWidgets.QLineEdit), target_molecule: Option = Option(value='', include=False, label='Target Molecule', tooltip='String identity of the target to use when calculating selectivity.\nMust match what exists in the calibration file exacly.', widget=PyQt5.QtWidgets.QLineEdit), mole_bal: Option = Option(value='c', include=False, label='Mole Balance Element', tooltip="Code will perform a mole balance for the element provided.\nThe default is 'c'. (i.e. carbon balance)", widget=PyQt5.QtWidgets.QLineEdit), figsize: Option = Option(value=(6.5, 4.5), include=False, label='Figure Size (x, y)', tooltip='Desired size of output figure in inches (x,y),\nfigsize suggestions:\n1/2 slide = (6.5, 4.5);  1/6 slide = (4.35, 3.25);\n1/4 slide =  (5, 3.65); Full slide =    (9, 6.65);', widget=PyQt5.QtWidgets.QComboBox), savedata: Option = Option(value=True, include=False, label='Save Data? (T/F)', tooltip='Save Data? T/F', widget=PyQt5.QtWidgets.QComboBox), switch_to_hours: Option = Option(value=2, include=False, label='Time to switch units to hours (hr)', tooltip='Time in hour to switch x axis unit', widget=PyQt5.QtWidgets.QDoubleSpinBox), overwrite: Option = Option(value=False, include=False, label='Overwrite previous calculations?', tooltip=None, widget=PyQt5.QtWidgets.QComboBox), basecorrect: Option = Option(value=True, include=False, label='Add baseline correction?', tooltip=None, widget=PyQt5.QtWidgets.QComboBox), xdata: Option = Option(value='[x1, x2, x3, ...]', include=False, label='Enter array for new X data', tooltip='Alice', widget=PyQt5.QtWidgets.QLineEdit), units: Option = Option(value='H2/C2H2', include=False, label='Enter New X Units', tooltip=None, widget=PyQt5.QtWidgets.QLineEdit), plot_XandS: Option = Option(value=False, include=False, label='Plot Conversion and Selectivity (2 plots)', tooltip='True to plot conversion and selectivity plots.', widget=PyQt5.QtWidgets.QRadioButton), plot_XvsS: Option = Option(value=False, include=False, label='Plot Selectivity vs Conversion (1 plot)', tooltip='True plots selectivity as function of conversion.', widget=PyQt5.QtWidgets.QRadioButton), forcezero: Option = Option(value=True, include=False, label='Include (0, 0) in fit?', tooltip='Add point (x=0, y=0) to data set.', widget=PyQt5.QtWidgets.QComboBox))

Bases: object

Starting list of options to use when building plotting dialogs.

General purpose label, tooltips, and default values are already included. When utilizing this class, you need to “turn on” GUI elements by setting individual Option instances to Option.include = True. This is made easier with the change_includes() method.

__init__(reactant: Option = Option(value='', include=False, label='Reactant', tooltip='String identity of reactant molecule to track.\nMust match what exists in the calibration file exactly.', widget=PyQt5.QtWidgets.QLineEdit), target_molecule: Option = Option(value='', include=False, label='Target Molecule', tooltip='String identity of the target to use when calculating selectivity.\nMust match what exists in the calibration file exacly.', widget=PyQt5.QtWidgets.QLineEdit), mole_bal: Option = Option(value='c', include=False, label='Mole Balance Element', tooltip="Code will perform a mole balance for the element provided.\nThe default is 'c'. (i.e. carbon balance)", widget=PyQt5.QtWidgets.QLineEdit), figsize: Option = Option(value=(6.5, 4.5), include=False, label='Figure Size (x, y)', tooltip='Desired size of output figure in inches (x,y),\nfigsize suggestions:\n1/2 slide = (6.5, 4.5);  1/6 slide = (4.35, 3.25);\n1/4 slide =  (5, 3.65); Full slide =    (9, 6.65);', widget=PyQt5.QtWidgets.QComboBox), savedata: Option = Option(value=True, include=False, label='Save Data? (T/F)', tooltip='Save Data? T/F', widget=PyQt5.QtWidgets.QComboBox), switch_to_hours: Option = Option(value=2, include=False, label='Time to switch units to hours (hr)', tooltip='Time in hour to switch x axis unit', widget=PyQt5.QtWidgets.QDoubleSpinBox), overwrite: Option = Option(value=False, include=False, label='Overwrite previous calculations?', tooltip=None, widget=PyQt5.QtWidgets.QComboBox), basecorrect: Option = Option(value=True, include=False, label='Add baseline correction?', tooltip=None, widget=PyQt5.QtWidgets.QComboBox), xdata: Option = Option(value='[x1, x2, x3, ...]', include=False, label='Enter array for new X data', tooltip='Alice', widget=PyQt5.QtWidgets.QLineEdit), units: Option = Option(value='H2/C2H2', include=False, label='Enter New X Units', tooltip=None, widget=PyQt5.QtWidgets.QLineEdit), plot_XandS: Option = Option(value=False, include=False, label='Plot Conversion and Selectivity (2 plots)', tooltip='True to plot conversion and selectivity plots.', widget=PyQt5.QtWidgets.QRadioButton), plot_XvsS: Option = Option(value=False, include=False, label='Plot Selectivity vs Conversion (1 plot)', tooltip='True plots selectivity as function of conversion.', widget=PyQt5.QtWidgets.QRadioButton), forcezero: Option = Option(value=True, include=False, label='Include (0, 0) in fit?', tooltip='Add point (x=0, y=0) to data set.', widget=PyQt5.QtWidgets.QComboBox)) None

Methods

__init__([reactant, target_molecule, ...])

change_includes(option_toggle_dict)

Set individual options on/off in one command using a dict.

values_todict([get_all])

Return dict of values for active Options.

Attributes

basecorrect

Option instance w/ QComboBox widget for entering T/F.

figsize

Option instance w/ QComboBox widget for entering figure size tuple.

forcezero

Option instance w/ QLineEdit widget for entering T/F.

mole_bal

Option instance w/ QLineEdit widget for mole balance element.

overwrite

Option instance w/ QComboBox widget for entering T/F.

plot_XandS

Option instance w/ QRadioButton widget for checking T/F.

plot_XvsS

Option instance w/ QRadioButton widget for checking T/F.

reactant

Option instance w/ QLineEdit widget for entering reactant

savedata

Option instance w/ QComboBox widget for entering T/F.

switch_to_hours

Option instance w/ QDoubleSpinBox widget for entering time in which the user would like to switch units from minute to hours.

target_molecule

Option instance w/ QLineEdit widget for entering target molecule.

units

Option instance w/ QLineEdit widget for entering X data unit.

xdata

Option instance w/ QLineEdit widget for entering new xdata array.

basecorrect: Option = Option(value=True, include=False, label='Add baseline correction?', tooltip=None, widget=PyQt5.QtWidgets.QComboBox)

Option instance w/ QComboBox widget for entering T/F.

Type:

Option

change_includes(option_toggle_dict)

Set individual options on/off in one command using a dict.

Parameters:

option_toggle_dict (dict) – {field: bool} Use this to set individual Options on/off in one command.

Return type:

None.

figsize: Option = Option(value=(6.5, 4.5), include=False, label='Figure Size (x, y)', tooltip='Desired size of output figure in inches (x,y),\nfigsize suggestions:\n1/2 slide = (6.5, 4.5);  1/6 slide = (4.35, 3.25);\n1/4 slide =  (5, 3.65); Full slide =    (9, 6.65);', widget=PyQt5.QtWidgets.QComboBox)

Option instance w/ QComboBox widget for entering figure size tuple.

Type:

Option

forcezero: Option = Option(value=True, include=False, label='Include (0, 0) in fit?', tooltip='Add point (x=0, y=0) to data set.', widget=PyQt5.QtWidgets.QComboBox)

Option instance w/ QLineEdit widget for entering T/F.

Type:

Option

mole_bal: Option = Option(value='c', include=False, label='Mole Balance Element', tooltip="Code will perform a mole balance for the element provided.\nThe default is 'c'. (i.e. carbon balance)", widget=PyQt5.QtWidgets.QLineEdit)

Option instance w/ QLineEdit widget for mole balance element.

Type:

Option

overwrite: Option = Option(value=False, include=False, label='Overwrite previous calculations?', tooltip=None, widget=PyQt5.QtWidgets.QComboBox)

Option instance w/ QComboBox widget for entering T/F.

Type:

Option

plot_XandS: Option = Option(value=False, include=False, label='Plot Conversion and Selectivity (2 plots)', tooltip='True to plot conversion and selectivity plots.', widget=PyQt5.QtWidgets.QRadioButton)

Option instance w/ QRadioButton widget for checking T/F.

Type:

Option

plot_XvsS: Option = Option(value=False, include=False, label='Plot Selectivity vs Conversion (1 plot)', tooltip='True plots selectivity as function of conversion.', widget=PyQt5.QtWidgets.QRadioButton)

Option instance w/ QRadioButton widget for checking T/F.

Type:

Option

reactant: Option = Option(value='', include=False, label='Reactant', tooltip='String identity of reactant molecule to track.\nMust match what exists in the calibration file exactly.', widget=PyQt5.QtWidgets.QLineEdit)

Option instance w/ QLineEdit widget for entering reactant

Type:

Option

savedata: Option = Option(value=True, include=False, label='Save Data? (T/F)', tooltip='Save Data? T/F', widget=PyQt5.QtWidgets.QComboBox)

Option instance w/ QComboBox widget for entering T/F.

Type:

Option

switch_to_hours: Option = Option(value=2, include=False, label='Time to switch units to hours (hr)', tooltip='Time in hour to switch x axis unit', widget=PyQt5.QtWidgets.QDoubleSpinBox)

Option instance w/ QDoubleSpinBox widget for entering time in which the user would like to switch units from minute to hours.

Type:

Option

target_molecule: Option = Option(value='', include=False, label='Target Molecule', tooltip='String identity of the target to use when calculating selectivity.\nMust match what exists in the calibration file exacly.', widget=PyQt5.QtWidgets.QLineEdit)

Option instance w/ QLineEdit widget for entering target molecule.

Type:

Option

units: Option = Option(value='H2/C2H2', include=False, label='Enter New X Units', tooltip=None, widget=PyQt5.QtWidgets.QLineEdit)

Option instance w/ QLineEdit widget for entering X data unit.

Type:

Option

values_todict(get_all=False)

Return dict of values for active Options.

Parameters:

get_all (bool, optional) – Setting to True returns values for hidden GUI elements. The default is False.

Returns:

values_dict – {field: value} User supplied values for fields based on GUI entry.

Return type:

dict

xdata: Option = Option(value='[x1, x2, x3, ...]', include=False, label='Enter array for new X data', tooltip='Alice', widget=PyQt5.QtWidgets.QLineEdit)

Option instance w/ QLineEdit widget for entering new xdata array.

Type:

Option