sas.qtgui.Perspectives.Invariant package¶
Subpackages¶
Submodules¶
sas.qtgui.Perspectives.Invariant.InvariantDetails module¶
- class sas.qtgui.Perspectives.Invariant.InvariantDetails.DetailsDialog(parent)[source]¶
Bases:
QDialog
,Ui_Dialog
This class stores some values resulting from invariant calculations. Given the value of total invariant, this class can also determine the percentage of invariants resulting from extrapolation.
- __doc__ = '\n This class stores some values resulting from invariant calculations.\n Given the value of total invariant, this class can also\n determine the percentage of invariants resulting from extrapolation.\n '¶
- __module__ = 'sas.qtgui.Perspectives.Invariant.InvariantDetails'¶
sas.qtgui.Perspectives.Invariant.InvariantPerspective module¶
- class sas.qtgui.Perspectives.Invariant.InvariantPerspective.InvariantWindow(parent=None)[source]¶
Bases:
QDialog
,Ui_tabbedInvariantUI
- __doc__ = None¶
- __module__ = 'sas.qtgui.Perspectives.Invariant.InvariantPerspective'¶
- checkLength()[source]¶
Validators of number of points for extrapolation. Error if it is larger than the distribution length
- checkQExtrapolatedData()[source]¶
Match status of low or high-Q extrapolated data checkbox in DataExplorer with low or high-Q extrapolation checkbox in invariant panel
- checkQRange()[source]¶
Validate the Q range for the upper and lower bounds
Valid: q_low_max < q_high_min, q_low_min < q_low_max, q_high_min > q_low_max, q_high_max > q_high_min
- ext = 'inv'¶
- getPage()[source]¶
Serializes full state of this invariant page Called by Save Analysis :return: {invariant-state}
- getState()[source]¶
Collects all active params into a dictionary of {name: value} :return: {name: value}
- hiFitAndFixToggle(toggle)[source]¶
Enable editing of power exponent if Fix for high Q is checked Disable otherwise
- lowGuinierAndPowerToggle(toggle)[source]¶
Guinier and Power radio buttons cannot be selected at the same time If Power is selected, Fit and Fix radio buttons are visible and Power line edit can be edited if Fix is selected
- name = 'Invariant'¶
- removeData(data_list=None)[source]¶
Remove the existing data reference from the Invariant Persepective
- serializeAll()[source]¶
Serialize the invariant state so data can be saved Invariant is not batch-ready so this will only effect a single page :return: {data-id: {self.name: {invariant-state}}}
- serializeCurrentPage()[source]¶
Serialize and return a dictionary of {data_id: invariant-state} Return empty dictionary if no data :return: {data-id: {self.name: {invariant-state}}}
- setData(data_item=None, is_batch=False)[source]¶
Obtain a QStandardItem object and dissect it to get Data1D/2D Pass it over to the calculator