-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Labels
machine: DIII-DRelated to the DIII-D tokamakRelated to the DIII-D tokamak
Description
Description of the problem
The get_n1_bradial_parameters tries to access PTDATA DUSBRADIAL and (if it fails) ONSBRADIAL to fetch data for its computation. Currently both of these get data calls fail.
disruption-py/disruption_py/machine/d3d/physics.py
Lines 705 to 725 in 7284810
| # TODO: TREE NAME? | |
| # BUG: Failed here! | |
| dusbradial, t_n1 = params.mds_conn.get_data_with_dims( | |
| f"ptdata('dusbradial', {params.shot_id})", | |
| tree_name="d3d", | |
| ) | |
| t_n1 /= 1e3 # [ms] -> [s] | |
| dusbradial = interp1(t_n1, dusbradial, params.times) | |
| dusbradial *= 1.0e-4 # [T] | |
| except mdsExceptions.MdsException as e: | |
| params.logger.debug(f"[Shot {params.shot_id}]:{traceback.format_exc()}") | |
| # If there's no data in dusbradial (DUD system) | |
| # check if ONFR was on and calculating the bradial | |
| try: | |
| dusbradial, t_n1 = params.mds_conn.get_data_with_dims( | |
| f"ptdata('onsbradial', {params.shot_id})", | |
| tree_name="d3d", | |
| ) | |
| t_n1 /= 1e3 # [ms] -> [s] | |
| dusbradial = interp1(t_n1, dusbradial, params.times) | |
| dusbradial *= 1.0e-4 # [T] |
Corresponding lines in the MATLAB script
disruption-py/DIII-D/get_n1_bradial_d3d.m
Lines 84 to 99 in 5a13906
| fprintf(1,['Reading bradial from MDS+ for shot%7i\n'], shot); | |
| [n1time,status] = mdsvalue(['dim_of(ptdata("dusbradial", ' num2str(shot) '))']);%[ms] | |
| if (mod(status,2) == 1 && length(n1time) >= 4);%1 | |
| fprintf(1,'dusbradial\n') | |
| n1time = n1time/1.e3; % convert ms to s | |
| dusbradial = mdsvalue(['ptdata("dusbradial", ' num2str(shot) ')'])*1.e-4; %[T] | |
| mdsclose; | |
| else; | |
| % If there's no data in dusbradial (DUD system) | |
| % check if ONFR was on and calculating the bradial | |
| [n1time,status] = mdsvalue(['dim_of(ptdata("onsbradial", ' num2str(shot) '))']); | |
| if (mod(status,2) == 1 && length(n1time) >= 4);%2 | |
| fprintf(1,'onsbradial\n') | |
| n1time = n1time/1.e3; % convert ms to s | |
| dusbradial = mdsvalue(['ptdata("onsbradial", ' num2str(shot) ')'])*1.e-4; %[T] | |
| mdsclose; |
I also tried checking these pointnames in ReviewPlus but it gave ERROR %TREE-W-NNF, Node Not Found error as well.

Also, on Omega I tried to check jTraverser by using tree name = "d3d" or "efit01" but neither of them worked. What's the proper tree name I should use?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
machine: DIII-DRelated to the DIII-D tokamakRelated to the DIII-D tokamak