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
Option instance w/ QComboBox widget for entering T/F.
Option instance w/ QComboBox widget for entering figure size tuple.
Option instance w/ QLineEdit widget for entering T/F.
Option instance w/ QLineEdit widget for mole balance element.
Option instance w/ QComboBox widget for entering T/F.
Option instance w/ QRadioButton widget for checking T/F.
Option instance w/ QRadioButton widget for checking T/F.
Option instance w/ QLineEdit widget for entering reactant
Option instance w/ QComboBox widget for entering T/F.
Option instance w/ QDoubleSpinBox widget for entering time in which the user would like to switch units from minute to hours.
Option instance w/ QLineEdit widget for entering target molecule.
Option instance w/ QLineEdit widget for entering X data unit.
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:
- 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:
- 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:
- 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:
- 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:
- 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:
- 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:
- 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:
- 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:
- 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:
- 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:
- 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:
- values_todict(get_all=False)
Return dict of values for active Options.