mdsplus icon indicating copy to clipboard operation
mdsplus copied to clipboard

jScope can not load complicated .dat files

Open joshStillerman opened this issue 6 years ago • 7 comments

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.

joshStillerman avatar Feb 04 '19 19:02 joshStillerman

Let me understand. Are you expecting that _index will somewhat contain the index of the panel?

GabrieleManduchi avatar Feb 05 '19 13:02 GabrieleManduchi

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.

joshStillerman avatar Feb 05 '19 17:02 joshStillerman

dwscope defines three local tdi vars: _ROW, _COLUMN and _INDEX. All start at zero.

tfredian avatar Feb 05 '19 17:02 tfredian

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.

GabrieleManduchi avatar Feb 07 '19 14:02 GabrieleManduchi

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 avatar Feb 21 '19 15:02 joshStillerman

@joshStillerman , any pending issues related to this now?

GabrieleManduchi avatar Nov 12 '19 11:11 GabrieleManduchi

This is still not working. _index is not defined. Any prospect of adding this?

joshStillerman avatar Apr 04 '23 19:04 joshStillerman