mdsplus
mdsplus copied to clipboard
jScope can not load complicated .dat files
A user scope with computed Y axis specifications is failing to load. The scope uses global settings and all of the panels default to the global settings which are a function of the row and column. For example:
Scope.global_1_1.experiment: nint
Scope.global_1_1.shot: current_shot("nint")
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))),|||if ((_n >= 10 & _n < 100), (_node = "INPUT_0"//text(_n,2))),|||if ((_n > 100), (_node = "INPUT_"//text(_n,3))),|||_sig = build_path(_node), _time = dim_of(_sig), _baseline = mean(_sig,,_time le 1.0),|||_sig = _sig - _baseline
Scope.global_1_1.event: acq423_6_1
Scope.global_1_1.title: "ACQ423_6_1:"//_node//$shot
Scope.global_1_1.global_defaults: -248713
Each panel has only a the height specified.
Let me understand. Are you expecting that _index will somewhat contain the index of the panel?
in dwscope it does - not sure if it is from zero or 1. I can check
On 2/5/19 8:34 AM, GabrieleManduchi wrote:
Let me understand. Are you expecting that _index will somewhat contain the index of the panel?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/MDSplus/mdsplus/issues/1540#issuecomment-460639426, or mute the thread https://github.com/notifications/unsubscribe-auth/AHHQZS87l9F8fPkEgKdbMOMrcNc8OjJ4ks5vKYh6gaJpZM4ah3jp.
dwscope defines three local tdi vars: _ROW, _COLUMN and _INDEX. All start at zero.
Ok, this is currently not supported by jScope, but it is not difficult to add. I will work on it in a couple of days.
I tried to test this. We need one more 'feature' there is no option to: a - set the global default y value b - use the global default y value
@joshStillerman , any pending issues related to this now?
This is still not working. _index is not defined. Any prospect of adding this?