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

__doc__ = None
__init__(self, parent: PySide6.QtWidgets.QWidget | None = None, f: PySide6.QtCore.Qt.WindowType = Default(Qt.WindowFlags)) None

Initialize self. See help(type(self)) for accurate signature.

__module__ = 'sas.qtgui.Perspectives.ParticleEditor.ParameterFunctionality.ParameterEntries'
_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

__doc__ = None
__init__(self, parent: PySide6.QtWidgets.QWidget | None = None, f: PySide6.QtCore.Qt.WindowType = Default(Qt.WindowFlags)) None

Initialize self. See help(type(self)) for accurate signature.

__module__ = 'sas.qtgui.Perspectives.ParticleEditor.ParameterFunctionality.ParameterEntries'
_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

__doc__ = None
__init__(self, parent: PySide6.QtWidgets.QWidget | None = None, f: PySide6.QtCore.Qt.WindowType = Default(Qt.WindowFlags)) None

Initialize self. See help(type(self)) for accurate signature.

__module__ = 'sas.qtgui.Perspectives.ParticleEditor.ParameterFunctionality.ParameterTable'
_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

__doc__ = None
__init__(self, parent: PySide6.QtWidgets.QWidget | None = None, f: PySide6.QtCore.Qt.WindowType = Default(Qt.WindowFlags)) None

Initialize self. See help(type(self)) for accurate signature.

__module__ = 'sas.qtgui.Perspectives.ParticleEditor.ParameterFunctionality.ParameterTableButtons'
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
__module__ = 'sas.qtgui.Perspectives.ParticleEditor.ParameterFunctionality.ParameterTableModel'
__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

__dict__ = mappingproxy({'__module__': 'sas.qtgui.Perspectives.ParticleEditor.ParameterFunctionality.ParameterTableModel', '__doc__': "\n    Parameter list backend\n\n    The 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>, '__dict__': <attribute '__dict__' of 'ParameterTableModel' objects>, '__weakref__': <attribute '__weakref__' of 'ParameterTableModel' objects>, '__annotations__': {'_sld_parameters': 'Dict[str, FunctionParameter]', '_magnetism_parameters': 'Dict[str, MagnetismParameterContainer]'}})
__doc__ = "\n    Parameter list backend\n\n    The 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__()
__module__ = 'sas.qtgui.Perspectives.ParticleEditor.ParameterFunctionality.ParameterTableModel'
__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