sas.qtgui.Perspectives.ParticleEditor.ParameterFunctionality package

Submodules

sas.qtgui.Perspectives.ParticleEditor.ParameterFunctionality.ParameterEntries module

class sas.qtgui.Perspectives.ParticleEditor.ParameterFunctionality.ParameterEntries.MagneticParameterEntry(parameter: MagnetismParameterContainer, model: ParameterTableModel)

Bases: ParameterEntry

__annotate_func__ = None
__annotations_cache__ = {}
__doc__ = None
__firstlineno__ = 72
__init__(parameter: MagnetismParameterContainer, model: ParameterTableModel)
__module__ = 'sas.qtgui.Perspectives.ParticleEditor.ParameterFunctionality.ParameterEntries'
__static_attributes__ = ('_entry', 'link_check')
_add_items()

Add the components to this widget

staticMetaObject = PySide6.QtCore.QMetaObject("MagneticParameterEntry" inherits "ParameterEntry": )
class sas.qtgui.Perspectives.ParticleEditor.ParameterFunctionality.ParameterEntries.ParameterEntry(parameter: Parameter, model: ParameterTableModel, base_size=50)

Bases: QWidget

GUI Entry

__annotate_func__ = None
__annotations_cache__ = {}
__doc__ = 'GUI Entry'
__firstlineno__ = 9
__init__(parameter: Parameter, model: ParameterTableModel, base_size=50)
__module__ = 'sas.qtgui.Perspectives.ParticleEditor.ParameterFunctionality.ParameterEntries'
__static_attributes__ = ('_base_size', '_model', '_parameter', 'fit_check', 'main_layout', 'name_label', 'value_field')
_add_items()

Add the components to this widget

_update_value()

Called when the value is changed

staticMetaObject = PySide6.QtCore.QMetaObject("ParameterEntry" inherits "QWidget": )

sas.qtgui.Perspectives.ParticleEditor.ParameterFunctionality.ParameterTable module

class sas.qtgui.Perspectives.ParticleEditor.ParameterFunctionality.ParameterTable.ParameterTable(model: ParameterTableModel)

Bases: QWidget

Main table of parameters

__annotate_func__ = None
__annotations_cache__ = {}
__doc__ = 'Main table of parameters '
__firstlineno__ = 12
__init__(model: ParameterTableModel)
__module__ = 'sas.qtgui.Perspectives.ParticleEditor.ParameterFunctionality.ParameterTable'
__static_attributes__ = ('_layout', '_model')
_section_heading(text: str)
build()

Build the list of parameters

clean()

Clean up the unused parameters in the parameter list

clear()

Clear the list of parameters

rebuild()

Rebuild the parameter list

staticMetaObject = PySide6.QtCore.QMetaObject("ParameterTable" inherits "QWidget": )
update_contents(sld_function: SLDFunction, magnetism_function: MagnetismFunction | None)

Update the contents of the parameter table with new functions

sas.qtgui.Perspectives.ParticleEditor.ParameterFunctionality.ParameterTable.main()

Show a demo of the table

sas.qtgui.Perspectives.ParticleEditor.ParameterFunctionality.ParameterTableButtons module

class sas.qtgui.Perspectives.ParticleEditor.ParameterFunctionality.ParameterTableButtons.ParameterTableButtons

Bases: QWidget, Ui_ParameterTableButtons

__annotate_func__ = None
__annotations_cache__ = {}
__doc__ = None
__firstlineno__ = 8
__init__()
__module__ = 'sas.qtgui.Perspectives.ParticleEditor.ParameterFunctionality.ParameterTableButtons'
__static_attributes__ = ()
staticMetaObject = PySide6.QtCore.QMetaObject("ParameterTableButtons" inherits "QWidget": )

sas.qtgui.Perspectives.ParticleEditor.ParameterFunctionality.ParameterTableModel module

Code that handles the parameter list backend

exception sas.qtgui.Perspectives.ParticleEditor.ParameterFunctionality.ParameterTableModel.LinkingImpossible

Bases: Exception

__doc__ = None
__firstlineno__ = 18
__module__ = 'sas.qtgui.Perspectives.ParticleEditor.ParameterFunctionality.ParameterTableModel'
__static_attributes__ = ()
__weakref__

list of weak references to the object

class sas.qtgui.Perspectives.ParticleEditor.ParameterFunctionality.ParameterTableModel.ParameterTableModel

Bases: object

Parameter list backend

The main issues that this class needs to deal with
  1. Having values that don’t get overridden arbitrarily

  2. Magnetism and SLD may or may not have different values for the same parameter name

__annotate_func__ = None
__annotations_cache__ = {'_magnetism_parameters': 'dict[str, MagnetismParameterContainer]', '_sld_parameters': 'dict[str, FunctionParameter]'}
__dict__ = mappingproxy({'__module__': 'sas.qtgui.Perspectives.ParticleEditor.ParameterFunctionality.ParameterTableModel', '__firstlineno__': 21, '__doc__': "\nParameter list backend\n\nThe main issues that this class needs to deal with\n 1) Having values that don't get overridden arbitrarily\n 2) Magnetism and SLD may or may not have different values for the same parameter name\n ", '__init__': <function ParameterTableModel.__init__>, 'sld_parameters': <property object>, 'magnetism_parameters': <property object>, 'can_link': <function ParameterTableModel.can_link>, 'set_link_status': <function ParameterTableModel.set_link_status>, 'update_from_code': <function ParameterTableModel.update_from_code>, 'clean': <function ParameterTableModel.clean>, 'calculation_parameters': <function ParameterTableModel.calculation_parameters>, '__static_attributes__': ('_magnetism_parameters', '_sld_parameters', 'background_parameter', 'fixed_parameters', 'scale_parameter', 'solvent_sld_parameter'), '__dict__': <attribute '__dict__' of 'ParameterTableModel' objects>, '__weakref__': <attribute '__weakref__' of 'ParameterTableModel' objects>, '__annotations_cache__': {'_sld_parameters': 'dict[str, FunctionParameter]', '_magnetism_parameters': 'dict[str, MagnetismParameterContainer]'}})
__doc__ = "\nParameter list backend\n\nThe main issues that this class needs to deal with\n 1) Having values that don't get overridden arbitrarily\n 2) Magnetism and SLD may or may not have different values for the same parameter name\n "
__firstlineno__ = 21
__init__()
__module__ = 'sas.qtgui.Perspectives.ParticleEditor.ParameterFunctionality.ParameterTableModel'
__static_attributes__ = ('_magnetism_parameters', '_sld_parameters', 'background_parameter', 'fixed_parameters', 'scale_parameter', 'solvent_sld_parameter')
__weakref__

list of weak references to the object

calculation_parameters() CalculationParameters

Can a magnetism be linked to an SLD parameter?

clean()

Remove parameters that are not in use

property magnetism_parameters

Set the status of the link of a magnetism to a SLD parameter

property sld_parameters
update_from_code(sld: SLDFunction, magnetism: MagnetismFunction | None)

Update the parameter list with sld and magnetism functions

sas.qtgui.Perspectives.ParticleEditor.ParameterFunctionality.ParameterTableModel.main()

Module contents