madgui.core.session module¶
This module defines the toplevel context that is used in madgui to keep track of current model, config, online control, and mainwindow.
Classes
|
Context variables and top-level application logic for a madgui session, i.e. |
-
class
madgui.core.session.
Session
(config=None)[source]¶ Bases:
object
Context variables and top-level application logic for a madgui session, i.e. the interaction between user and different parts of the computer program. This object keeps track and coordinates the use of the currently opened model, GUI window, user variables, control system connection, and configuration data.
Methods
find_model
(name)load_default
([model])load_model
(name, **madx_args)model_args
(filename)Please OVERRIDE to provide custom model arguments.
on_model_changed
(old, new)save
(filename)Save session state to file.
set_interpolate
(points_per_meter)Attributes
list() -> new empty list
-
known_extensions
= ['.cpymad.yml', '.madx']¶
-