diff --git a/bec_widgets/validation/monitor_config_validator.py b/bec_widgets/validation/monitor_config_validator.py index 42d2ac0e..b8d62287 100644 --- a/bec_widgets/validation/monitor_config_validator.py +++ b/bec_widgets/validation/monitor_config_validator.py @@ -181,12 +181,12 @@ class PlotSettings(BaseModel): Global settings for plotting affecting mostly visuals. Attributes: - background_color (str): Color of the plot background. - axis_width (Optional[int]): Width of the plot axes. - axis_color (Optional[str]): Color of the plot axes. - num_columns (int): Number of columns in the plot layout. - colormap (str): Colormap to be used. - scan_types (bool): Indicates if the configuration is for different scan types. + background_color (str): Color of the plot background. Default is black. + axis_width (Optional[int]): Width of the plot axes. Default is 2. + axis_color (Optional[str]): Color of the plot axes. Default is None. + num_columns (int): Number of columns in the plot layout. Default is 1. + colormap (str): Colormap to be used. Default is magma. + scan_types (bool): Indicates if the configuration is for different scan types. Default is False. """ background_color: Literal["black", "white"] = "black" diff --git a/bec_widgets/widgets/monitor/monitor.py b/bec_widgets/widgets/monitor/monitor.py index 27dee8ce..a1398cde 100644 --- a/bec_widgets/widgets/monitor/monitor.py +++ b/bec_widgets/widgets/monitor/monitor.py @@ -10,8 +10,7 @@ from qtpy.QtCore import Signal as pyqtSignal from qtpy.QtCore import Slot as pyqtSlot from qtpy.QtWidgets import QApplication, QMessageBox -from bec_widgets.utils import Colors, Crosshair -from bec_widgets.utils.yaml_dialog import load_yaml +from bec_widgets.utils import Colors, Crosshair, yaml_dialog from bec_widgets.validation import MonitorConfigValidator from bec_widgets.utils.bec_dispatcher import bec_dispatcher @@ -821,7 +820,7 @@ if __name__ == "__main__": # pragma: no cover config = json.loads(args.config) elif args.config_file is not None: # Load config from file - config = load_yaml(args.config_file) + config = yaml_dialog.load_yaml(args.config_file) else: config = CONFIG_SIMPLE