mainwindow
sgp.ui.mainwindow.config
module-attribute
config = Config(verbose=lower() in trues, password=get('SGP_PASSWORD', ''), numba_enabled=get('NUMBA_DISABLE_JIT', '0') == '0', language=value('language', name()))
sgp.ui.mainwindow.settings
module-attribute
sgp.ui.mainwindow.ANN
sgp.ui.mainwindow.HSSTab
Bases: QWidget, QObject
Widget for displaying soil properties for the HSS model.
sgp.ui.mainwindow.HSSTab.addInputProperty
addInputProperty(key: str, **options) -> PropertyWidget
Add an input property to the list.
sgp.ui.mainwindow.HSSTab.addOutputProperty
addOutputProperty(key: str, SpinBox: Type[QDoubleSpinBox] = QtWidgets.QDoubleSpinBox, **options) -> PropertyWidget
Add an output property to the list.
sgp.ui.mainwindow.MPD
Bases: PredictionBase
Multivariate Distribution (MPD) model.
sgp.ui.mainwindow.MPD.corr_bootstrap
Calculate the correlation matrix.
sgp.ui.mainwindow.MPD.fit
Fit the Johnson distribution to the data.
| RETURNS | DESCRIPTION |
|---|---|
A tuple containing the distributions, the optimization results, the statistics, and the p-values.
|
|
sgp.ui.mainwindow.MPD.optimize
optimize(df: DataFrame, *, method: Optimizers, **kwargs)
Optimize the z-value for the Johnson distribution.
sgp.ui.mainwindow.Model
The prediction model
sgp.ui.mainwindow.QueryTab
Bases: QWidget, QObject
Widget for displaying query properties.
sgp.ui.mainwindow.QueryTab.deleteInputProperty
Delete a property from the list.
sgp.ui.mainwindow.QueryTab.setANNOutputs
Set the output values.
sgp.ui.mainwindow.SGPIO
Bases: HashableBaseModelIO
sgp.ui.mainwindow.SGPMainWindow
Bases: MainWindow, QObject
Custom main window for the qtconsole that adds a window for displaying matplotlib figures.
sgp.ui.mainwindow.SGPMainWindow.corrTab
corrTab(data: dict = None) -> TableWidget
Query the correlation matrix.
sgp.ui.mainwindow.SGPMainWindow.distTab
distTab(data: dict = None) -> TableWidget
Query the distribution parameters.
sgp.ui.mainwindow.SGPMainWindow.fromBytes
Load the project from a binary string or file if a path is provided.
sgp.ui.mainwindow.SGPMainWindow.fromCryptography
Load the project from a binary string or file if a path is provided.
sgp.ui.mainwindow.SGPMainWindow.fromDict
fromDict(*, data: dict, **kwargs)
Load the project from a dictionary.
sgp.ui.mainwindow.SGPMainWindow.fromJson
Load the project from a json string or file if a path is provided.
sgp.ui.mainwindow.SGPMainWindow.fromToml
Load the project from a toml string or file if a path is provided.
sgp.ui.mainwindow.SGPMainWindow.fromYaml
Load the project from a yaml string or file if a path is provided.
sgp.ui.mainwindow.SGPMainWindow.queryTab
queryTab() -> QueryTab
Query the parameters from the database.
sgp.ui.mainwindow.SGPMainWindow.requestRestart
Request a restart of the application.
sgp.ui.mainwindow.SGPMainWindow.setLanguage
Change the language of the application.
sgp.ui.mainwindow.SGPMainWindow.simplifiedChinese
Change the language to Chinese.
sgp.ui.mainwindow.SGPMainWindow.toBytes
Convert the project to a binary string or save it to a file if a path is provided.
sgp.ui.mainwindow.SGPMainWindow.toCryptography
Convert the project to a binary string or save it to a file if a path is provided.
sgp.ui.mainwindow.SGPMainWindow.toDict
toDict(**kwargs) -> dict
Convert the project to a dictionary.
sgp.ui.mainwindow.SGPMainWindow.toJson
Convert the project to a json string or save it to a file if a path is provided.
sgp.ui.mainwindow.SGPMainWindow.toToml
Convert the project to a toml string or save it to a file if a path is provided.
sgp.ui.mainwindow.TabWidget
Bases: QTabWidget
Tab widget with methods for adding tabs of any types.
sgp.ui.mainwindow.TabWidget.addAnyTab
sgp.ui.mainwindow.TabWidget.addFigureTab
addFigureTab(window: MainWindow, canvas: FigureCanvas)
Add a figure tab to the tab widget.
| PARAMETER | DESCRIPTION |
|---|---|
window |
The window to be displayed in the tab.
TYPE:
|
canvas |
The canvas to be displayed in the window.
TYPE:
|
sgp.ui.mainwindow.TabWidget.addTableTab
addTableTab(data, title: str) -> TableWidget
sgp.ui.mainwindow.TabWidget.getCanvas
getCanvas(label: str) -> FigureCanvas
Get canvas with given label.
sgp.ui.mainwindow.execute_in_thread
Execute a function in a separate thread, usually for functions that do not return a value. For functions that return a value, use the slot parameter to connect the resultReady signal to a function that will receive the result.
| PARAMETER | DESCRIPTION |
|---|---|
func |
Function to be executed in a separate thread, by default None
TYPE:
|
slot |
Function to be connected to the resultReady signal when the result is ready, by default None
TYPE:
|
sgp.ui.mainwindow.getSgpMainWindow
getSgpMainWindow() -> Optional['SGPMainWindow']
Return the main window for the application.