dwscope does not load the global "Scope.global_1_1.y" expression
Affiliation MIT/PSFC
Version(s) Affected Release: alpha_release-7-153-6 Date: Tue Jul 22 22:00:27 UTC 2025
Platform(s) Ubuntu 24
Describe the bug
( Related to issue #1540 )
A configuration file that contains a global y expression like this:
Scope.global_1_1.y: _n = _index + 1, if ((_n<10), (_node="INPUT_00"//text(_n,1))),_sig=build_path(_node),_time=dim_of(_sig),_baseline=mean(_sig,,_time le 1.0),_sig=_sig-_baseline
Fails to load the data on the panel. The panel looks blank. No error message is shown.
If, on the other hand, the global_1_1.y expression is NOT defined AND:
1 - the panel expression is simple, like just the input node, then the data is plot. 2- if the panel expression is the complicated one (as the global one was), it will fail with: "Error evaluating Y-axis"
To Reproduce Use a .dat configuration file that contains the following:
Scope.geometry: 600x500+2411+747
Scope.title: "MDS Scope"
Scope.icon_name: "Scope"
Scope.title_event:
Scope.print_file: dwscope.ps
Scope.print_event:
Scope.print_portrait: 0
Scope.print_window_title: 0
Scope.printer: lp
Scope.font: -Adobe-New Century Schoolbook-Medium-R-Normal--12-120-75-75-P-70-ISO8859-1
Scope.columns: 1
Scope.global_1_1.experiment: nint
Scope.global_1_1.shot: 190201002
Scope.global_1_1.default_node: \nint::top.daq_hardware:acq423_6_1
Scope.global_1_1.y: _n = _index + 1, if ((_n<10), (_node="INPUT_00"//text(_n,1))),_sig=build_path(_node),_time=dim_of(_sig),_baseline=mean(_sig,,_time le 1.0),_sig=_sig-_baseline
Scope.global_1_1.global_defaults: -2049
Scope.rows_in_column_1: 1
Scope.plot_1_1.height: 420
Scope.plot_1_1.global_defaults: 259457
Then, open it in dwscope. The panel becomes blank with no data and no error message.
Expected behavior The panel should load the global expression and show the data in the panel.