mad_gui.models.GlobalData#
- class mad_gui.models.GlobalData[source]#
Bases:
BaseStateModel
A single object per MaD GUI instance that keeps global data.
- Attributes:
- active_loader
One of the loaders passed to start_gui, which have inherited from
BaseImporter
. It can be selected by the user via the dropdown menu in theLoadDataDialog
.- annotation_file
In case the user selected annotations when loading data in the
LoadDataDialog
, this keeps the file the user selected.- data_file
File of the data that is selected by the user in the
LoadDataDialog
.- sync_file
A file that keeps synchronization between video and sensor data. The GUI automatically searches for a file in the same folder as the video_file and if it finds a file, that has *sync*.xlsx in it assumes, this keeps the video synchronization.
- video_file
File which contains the video to be displayed in the
LoadDataDialog
.- plot_data
A dictionary, where the keys are the names of the plots and the values are
PlotData
objects.- plugins
All plugins, that the GUI is aware of. The GUI is aware of all plugins that were passed to it via
start_gui()
.- labels
All the label classes that the GUI is aware of (= the ones that were passed to
start_gui()
). The actually plotted annotations can not be found here, but in plot_data[<name of the plot>].annotations.data, see the documentation ofPlotData
.
Methods
annotation_file
annotation_file_changed
base_dir
base_dir_changed
data_file
data_file_changed
plot_data
plot_data_changed
sync_file
sync_file_changed
video_file
video_file_changed