sas.qtgui.Calculators.Shape2SAS package¶
Subpackages¶
- sas.qtgui.Calculators.Shape2SAS.PlotAspects package
- Submodules
- sas.qtgui.Calculators.Shape2SAS.PlotAspects.plotAspects module
CanvasViewerPlotDesignViewerPlotDesign.__annotate_func__()ViewerPlotDesign.__annotations_cache__ViewerPlotDesign.__dataclass_fields__ViewerPlotDesign.__dataclass_params__ViewerPlotDesign.__dict__ViewerPlotDesign.__doc__ViewerPlotDesign.__eq__()ViewerPlotDesign.__firstlineno__ViewerPlotDesign.__hash__ViewerPlotDesign.__init__()ViewerPlotDesign.__match_args__ViewerPlotDesign.__module__ViewerPlotDesign.__replace__()ViewerPlotDesign.__repr__()ViewerPlotDesign.__static_attributes__ViewerPlotDesign.__weakref__ViewerPlotDesign.colour
- Module contents
- sas.qtgui.Calculators.Shape2SAS.Tables package
- Subpackages
- sas.qtgui.Calculators.Shape2SAS.Tables.UI package
- Submodules
- sas.qtgui.Calculators.Shape2SAS.Tables.UI.subunitTableUI module
Ui_SubunitTableControllerUi_SubunitTableController.__annotate_func__Ui_SubunitTableController.__annotations_cache__Ui_SubunitTableController.__dict__Ui_SubunitTableController.__doc__Ui_SubunitTableController.__firstlineno__Ui_SubunitTableController.__module__Ui_SubunitTableController.__static_attributes__Ui_SubunitTableController.__weakref__Ui_SubunitTableController.retranslateUi()Ui_SubunitTableController.setupUi()
- sas.qtgui.Calculators.Shape2SAS.Tables.UI.variableTableUI module
Ui_VariableTableUi_VariableTable.__annotate_func__Ui_VariableTable.__annotations_cache__Ui_VariableTable.__dict__Ui_VariableTable.__doc__Ui_VariableTable.__firstlineno__Ui_VariableTable.__module__Ui_VariableTable.__static_attributes__Ui_VariableTable.__weakref__Ui_VariableTable.retranslateUi()Ui_VariableTable.setupUi()
- Module contents
- sas.qtgui.Calculators.Shape2SAS.Tables.UI package
- Submodules
- sas.qtgui.Calculators.Shape2SAS.Tables.subunitTable module
CustomDelegateCustomStandardItemDoubleValidatorExtendedEnumModelTableModelOptionLayoutOptionLayout.COMX()OptionLayout.COMY()OptionLayout.COMZ()OptionLayout.COM_xOptionLayout.COM_yOptionLayout.COM_zOptionLayout.ColourOptionLayout.RPX()OptionLayout.RPY()OptionLayout.RPZ()OptionLayout.RP_xOptionLayout.RP_yOptionLayout.RP_zOptionLayout.SLD()OptionLayout.SubunitOptionLayout.__doc__OptionLayout.__module__OptionLayout.__new__()OptionLayout.alpha()OptionLayout.beta()OptionLayout.colour()OptionLayout.cube()OptionLayout.cuboid()OptionLayout.cyl_ring()OptionLayout.cylinder()OptionLayout.disc()OptionLayout.ellipsoid()OptionLayout.elliptical_cylinder()OptionLayout.gamma()OptionLayout.get_position()OptionLayout.hollow_cube()OptionLayout.hollow_sphere()OptionLayout.sphere()OptionLayout.xOptionLayout.yOptionLayout.zOptionLayout.ΔSLDOptionLayout.αOptionLayout.βOptionLayout.γ
SubunitTableSubunitTable.__annotate_func__SubunitTable.__annotations_cache__SubunitTable.__doc__SubunitTable.__firstlineno__SubunitTable.__init__()SubunitTable.__module__SubunitTable.__static_attributes__SubunitTable.initializeModel()SubunitTable.initializeSignals()SubunitTable.onAdding()SubunitTable.onClearSubunitTable()SubunitTable.onDeleting()SubunitTable.setButtonSpinboxBounds()SubunitTable.setSubunitOptions()SubunitTable.setSubunitRestriction()SubunitTable.setTableProperties()SubunitTable.smallestInteger()SubunitTable.staticMetaObject
- sas.qtgui.Calculators.Shape2SAS.Tables.variableTable module
CustomDelegateModelVariableTableModelModelVariableTableModel.__annotate_func__ModelVariableTableModel.__annotations_cache__ModelVariableTableModel.__doc__ModelVariableTableModel.__firstlineno__ModelVariableTableModel.__init__()ModelVariableTableModel.__module__ModelVariableTableModel.__static_attributes__ModelVariableTableModel.headerData()ModelVariableTableModel.staticMetaObject
VariableTableVariableTable.__annotate_func__VariableTable.__annotations_cache__VariableTable.__doc__VariableTable.__firstlineno__VariableTable.__init__()VariableTable.__module__VariableTable.__static_attributes__VariableTable.getAllTableColumnsPos()VariableTable.getAllTableNamesVariables()VariableTable.getCheckedTableNamesVariables()VariableTable.getCheckedVariables()VariableTable.initializeVariableModel()VariableTable.onClearTable()VariableTable.removeTableData()VariableTable.resetTable()VariableTable.setDefaultLayout()VariableTable.setUncheckToAllCheckBoxes()VariableTable.setVariableTableData()VariableTable.staticMetaObject
- Module contents
- Subpackages
- sas.qtgui.Calculators.Shape2SAS.UI package
- Submodules
- sas.qtgui.Calculators.Shape2SAS.UI.ButtonOptionsUI module
Ui_ButtonOptionsUi_ButtonOptions.__annotate_func__Ui_ButtonOptions.__annotations_cache__Ui_ButtonOptions.__dict__Ui_ButtonOptions.__doc__Ui_ButtonOptions.__firstlineno__Ui_ButtonOptions.__module__Ui_ButtonOptions.__static_attributes__Ui_ButtonOptions.__weakref__Ui_ButtonOptions.retranslateUi()Ui_ButtonOptions.setupUi()
- sas.qtgui.Calculators.Shape2SAS.UI.ConstraintsUI module
- sas.qtgui.Calculators.Shape2SAS.UI.DesignWindowUI module
- sas.qtgui.Calculators.Shape2SAS.UI.ViewerButtonsUI module
Ui_ViewerButtonsUi_ViewerButtons.__annotate_func__Ui_ViewerButtons.__annotations_cache__Ui_ViewerButtons.__dict__Ui_ViewerButtons.__doc__Ui_ViewerButtons.__firstlineno__Ui_ViewerButtons.__module__Ui_ViewerButtons.__static_attributes__Ui_ViewerButtons.__weakref__Ui_ViewerButtons.retranslateUi()Ui_ViewerButtons.setupUi()
- sas.qtgui.Calculators.Shape2SAS.UI.ViewerModelRadiusUI module
Ui_ViewerModelRadiusUi_ViewerModelRadius.__annotate_func__Ui_ViewerModelRadius.__annotations_cache__Ui_ViewerModelRadius.__dict__Ui_ViewerModelRadius.__doc__Ui_ViewerModelRadius.__firstlineno__Ui_ViewerModelRadius.__module__Ui_ViewerModelRadius.__static_attributes__Ui_ViewerModelRadius.__weakref__Ui_ViewerModelRadius.retranslateUi()Ui_ViewerModelRadius.setupUi()
- Module contents
Submodules¶
sas.qtgui.Calculators.Shape2SAS.ButtonOptions module¶
- class sas.qtgui.Calculators.Shape2SAS.ButtonOptions.ButtonOptions(parent=None)¶
Bases:
QWidget,Ui_ButtonOptionsclose, reset and help options
- __annotate_func__ = None¶
- __annotations_cache__ = {}¶
- __doc__ = 'close, reset and help options'¶
- __firstlineno__ = 8¶
- __init__(parent=None)¶
- __module__ = 'sas.qtgui.Calculators.Shape2SAS.ButtonOptions'¶
- __static_attributes__ = ()¶
- staticMetaObject = PySide6.QtCore.QMetaObject("ButtonOptions" inherits "QWidget": )¶
sas.qtgui.Calculators.Shape2SAS.Constraints module¶
- class sas.qtgui.Calculators.Shape2SAS.Constraints.Constraints(parent=None)¶
Bases:
QWidget,Ui_Constraints- __annotate_func__ = None¶
- __annotations_cache__ = {}¶
- __doc__ = None¶
- __firstlineno__ = 25¶
- __init__(parent=None)¶
- __module__ = 'sas.qtgui.Calculators.Shape2SAS.Constraints'¶
- __static_attributes__ = ('buttonOptions', 'constraintText', 'constraintTextEditor', 'createPlugin', 'variableTable')¶
- checkPythonSyntax(text: str)¶
Check if text is valid python syntax
- clearConstraints()¶
Clear text editor containing constraints
- extractValues(elt: AST) str | int | float¶
- getConstraintText(constraints: str) str¶
Get default text for constraints
- getConstraints(constraintsStr: str, fitPar: [<class 'str'>], modelPars: [<class 'str'>], modelVals: [[<class 'float'>]], checkedPars: [<class 'str'>]) -> ([<class 'str'>], <class 'str'>, <class 'str'>, [[<class 'bool'>]])¶
Read inputs from text editor
- getImportStatements(text: str) [<class 'str'>]¶
return all import statements that were written in the text editor
- getParameters(constraintsStr: str, fitPar: [<class 'str'>]) str¶
Get parameters from constraints
- getParametersFromConstraints(constraints_str: str, targetName: str) []¶
Extract parameters from constraints string
- static getPosition(item: str | int | float, itemLists: [[str | int | float]]) -> (<class 'int'>, <class 'int'>)¶
Find position of an item in lists
- getTranslation(constraintsStr: str, importStatement: [<class 'str'>], modelPars: [[<class 'str'>]], modelVals: [[<class 'float'>]], checkedPars: [[<class 'str'>]]) -> (<class 'str'>, [[<class 'bool'>]])¶
Get translation from constraints
- ifParameterExists(lineNames: [<class 'str'>], modelPars: [[<class 'str'>]]) bool¶
Check if parameter exists in model parameters
- isImportFromStatement(node: ImportFrom) [<class 'str'>]¶
Return list of ImportFrom statements
- isImportStatement(node: Import) [<class 'str'>]¶
Return list of Import statements
- onClosingConstraints()¶
Close constraints page
- static removeFromList(listItems: [str | int | float], listToCompare: [str | int | float])¶
Remove items from a list if in another list
- setConstraints(constraints: str)¶
Set text to QTextEdit
- staticMetaObject = PySide6.QtCore.QMetaObject("Constraints" inherits "QWidget": )¶
sas.qtgui.Calculators.Shape2SAS.DesignWindow module¶
sas.qtgui.Calculators.Shape2SAS.ViewerAllOptions module¶
- class sas.qtgui.Calculators.Shape2SAS.ViewerAllOptions.ViewerButtons(parent=None)¶
Bases:
QWidget,Ui_ViewerButtonsXY, XZ, YZ view axis buttons
- __annotate_func__ = None¶
- __annotations_cache__ = {}¶
- __doc__ = 'XY, XZ, YZ view axis buttons'¶
- __firstlineno__ = 9¶
- __init__(parent=None)¶
- __module__ = 'sas.qtgui.Calculators.Shape2SAS.ViewerAllOptions'¶
- __static_attributes__ = ()¶
- staticMetaObject = PySide6.QtCore.QMetaObject("ViewerButtons" inherits "QWidget": )¶
- class sas.qtgui.Calculators.Shape2SAS.ViewerAllOptions.ViewerModelRadius(parent=None)¶
Bases:
QWidget,Ui_ViewerModelRadiusModel radius view
- __annotate_func__ = None¶
- __annotations_cache__ = {}¶
- __doc__ = 'Model radius view'¶
- __firstlineno__ = 17¶
- __init__(parent=None)¶
- __module__ = 'sas.qtgui.Calculators.Shape2SAS.ViewerAllOptions'¶
- __static_attributes__ = ()¶
- staticMetaObject = PySide6.QtCore.QMetaObject("ViewerModelRadius" inherits "QWidget": )¶
sas.qtgui.Calculators.Shape2SAS.ViewerModel module¶
sas.qtgui.Calculators.Shape2SAS.genPlugin module¶
- sas.qtgui.Calculators.Shape2SAS.genPlugin.generateModel(prof: ~sas.sascalc.shape2sas.Shape2SAS.ModelProfile, constrainParameters: str, fitPar: [<class 'str'>], Npoints: int, pr_points: int, model_name: str) str¶
Generates a theoretical model
- sas.qtgui.Calculators.Shape2SAS.genPlugin.generatePlugin(prof: ~sas.sascalc.shape2sas.Shape2SAS.ModelProfile, constrainParameters: str, fitPar: [<class 'str'>], Npoints: int, pr_points: int, file_name: str) -> (<class 'str'>, <class 'pathlib.Path'>)¶
Generates a theoretical scattering plugin model
- sas.qtgui.Calculators.Shape2SAS.genPlugin.parListFormat(par: [[str | float]]) str¶
Format a list of parameters to the model string. In this case the list is on element for each shape. For a single shape there will be only a single value. Mainly for delta Rho.
- sas.qtgui.Calculators.Shape2SAS.genPlugin.parListsFormat(par: [str | float]) str¶
Format a list of list containing parameters to the model string. This is used for single shape parameter lists like the center of mass of the object which will be an element of the list of such COM for each shape in a multishape model.