Skip to content

application

sgp.ui.application.__version__ module-attribute

__version__: str = _get_version()

sgp.ui.application.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.application.JupyterWidget

Bases: QtInProcessRichJupyterWidget, QWidget, QObject

Jupyter Qt Console Widget

sgp.ui.application.JupyterWidget.push

push(context: dict = None, **kwargs)

Push variables to the kernel.

PARAMETER DESCRIPTION
context

The context to push to the kernel.

TYPE: dict DEFAULT: None

**kwargs

The variables to push to the kernel.

DEFAULT: {}

sgp.ui.application.SGPApplication

Bases: JupyterQtConsoleApp

Jupyter Qt Console Application with pre-defined contexts

sgp.ui.application.SGPApplication.init_context_variables

init_context_variables(widget: JupyterWidget)

Initialize the context variables for the widget.

sgp.ui.application.SGPApplication.launch_instance classmethod

launch_instance(argv: List[str] = None, **kwargs) -> None

Launch an instance of a Jupyter Application and close the splash screen after initialization.

sgp.ui.application.SGPMainWindow

Bases: MainWindow, QObject

Custom main window for the qtconsole that adds a window for displaying matplotlib figures.

sgp.ui.application.SGPMainWindow.ann property

ann: ANN

Get the ann object.

sgp.ui.application.SGPMainWindow.io property

io: SGPIO

Get the io object.

sgp.ui.application.SGPMainWindow.mpd property

mpd: MPD

Get the mpd object.

sgp.ui.application.SGPMainWindow.about

about()

Show the information about the application.

sgp.ui.application.SGPMainWindow.corrData

corrData() -> dict

Get the correlation data.

sgp.ui.application.SGPMainWindow.corrTab

corrTab(data: dict = None) -> TableWidget

Query the correlation matrix.

sgp.ui.application.SGPMainWindow.distData

distData() -> dict

Get the distribution data.

sgp.ui.application.SGPMainWindow.distTab

distTab(data: dict = None) -> TableWidget

Query the distribution parameters.

sgp.ui.application.SGPMainWindow.english

english()

Change the language to English.

sgp.ui.application.SGPMainWindow.fromBytes

fromBytes(*, bytes: bytes | None = None, path: str | None = None, **kwargs)

Load the project from a binary string or file if a path is provided.

sgp.ui.application.SGPMainWindow.fromCryptography

fromCryptography(*, binary: bytes | None = None, path: str | None = None, **kwargs)

Load the project from a binary string or file if a path is provided.

sgp.ui.application.SGPMainWindow.fromDict

fromDict(*, data: dict, **kwargs)

Load the project from a dictionary.

sgp.ui.application.SGPMainWindow.fromJson

fromJson(*, string: str | None = None, path: str | None = None, **kwargs)

Load the project from a json string or file if a path is provided.

sgp.ui.application.SGPMainWindow.fromToml

fromToml(*, string: str | None = None, path: str | None = None, **kwargs)

Load the project from a toml string or file if a path is provided.

sgp.ui.application.SGPMainWindow.fromYaml

fromYaml(*, string: str | None = None, path: str | None = None, **kwargs)

Load the project from a yaml string or file if a path is provided.

sgp.ui.application.SGPMainWindow.github

github()

Open project GitHub homepage.

sgp.ui.application.SGPMainWindow.hssTab

hssTab() -> HSSTab

Query the parameters for the HSS model.

sgp.ui.application.SGPMainWindow.init_sgp_menu_bar

init_sgp_menu_bar()

Setup the menu bar.

sgp.ui.application.SGPMainWindow.new

new()

Create a new project.

sgp.ui.application.SGPMainWindow.open

open(filePath: str = None)

Open a project.

sgp.ui.application.SGPMainWindow.queryTab

queryTab() -> QueryTab

Query the parameters from the database.

sgp.ui.application.SGPMainWindow.reportTab

reportTab() -> TableWidget

Show the statistics.

sgp.ui.application.SGPMainWindow.requestRestart

requestRestart()

Request a restart of the application.

sgp.ui.application.SGPMainWindow.save

save()

Save the project.

sgp.ui.application.SGPMainWindow.saveAs

saveAs()

Save the project as a new file.

sgp.ui.application.SGPMainWindow.setLanguage

setLanguage(language: Literal['en', 'zh_CN'])

Change the language of the application.

sgp.ui.application.SGPMainWindow.setupCentralWidget

setupCentralWidget()

Setup the central widget.

sgp.ui.application.SGPMainWindow.simplifiedChinese

simplifiedChinese()

Change the language to Chinese.

sgp.ui.application.SGPMainWindow.statsTab

statsTab() -> TableWidget

Show the statistics.

sgp.ui.application.SGPMainWindow.toBytes

toBytes(path: str | None = None, **kwargs) -> bytes | None

Convert the project to a binary string or save it to a file if a path is provided.

sgp.ui.application.SGPMainWindow.toCryptography

toCryptography(path: str | None = None, **kwargs) -> bytes | None

Convert the project to a binary string or save it to a file if a path is provided.

sgp.ui.application.SGPMainWindow.toDict

toDict(**kwargs) -> dict

Convert the project to a dictionary.

sgp.ui.application.SGPMainWindow.toJson

toJson(path: str | None = None, **kwargs) -> str | None

Convert the project to a json string or save it to a file if a path is provided.

sgp.ui.application.SGPMainWindow.toToml

toToml(path: str | None = None, **kwargs) -> str | None

Convert the project to a toml string or save it to a file if a path is provided.

sgp.ui.application.SGPMainWindow.toYaml

toYaml(path: str | None = None, **kwargs) -> str | None

Convert the project to a yaml string or save it to a file if a path is provided.

sgp.ui.application.SplashScreen

Bases: QSplashScreen, QObject

Label to show splash screen with a close signal.