Skip to content
Snippets Groups Projects
Commit 3b73a49b authored by Olivier Sauter's avatar Olivier Sauter
Browse files

specific assert for gas_fluxes

parent ae334160
No related branches found
No related tags found
1 merge request!169add new array of gas traces and add source for rtc request
Pipeline #209506 passed
...@@ -32,6 +32,10 @@ classdef (SharedTestFixtures={... ...@@ -32,6 +32,10 @@ classdef (SharedTestFixtures={...
case 'eqdsk' case 'eqdsk'
% avoid writing files in /tmp, may not be allowed % avoid writing files in /tmp, may not be allowed
gdat_call = sprintf(['gdat_%s(%s,''%s'',''write'',0)'],lower(testCase.Machine),shot,request); gdat_call = sprintf(['gdat_%s(%s,''%s'',''write'',0)'],lower(testCase.Machine),shot,request);
case 'gas_fluxes'
% test new gas flow entries
shot = 83173; % (GV1=GV2 case)
gdat_call = sprintf(['gdat_' lower(testCase.Machine) '(%s,''%s'')'],shot,request);
case 'radcam' case 'radcam'
% need a newer shot for tcv radcam % need a newer shot for tcv radcam
shot = 81102; shot = 81102;
...@@ -60,6 +64,8 @@ classdef (SharedTestFixtures={... ...@@ -60,6 +64,8 @@ classdef (SharedTestFixtures={...
switch request switch request
case {'ece', 'expcode', 'ids', 'ni', 'ti', 'transp'} case {'ece', 'expcode', 'ids', 'ni', 'ti', 'transp'}
% tests not yet fully implemented and empty % tests not yet fully implemented and empty
case 'gas_fluxes'
testCase.assertTrue(iscell(gdat_out.data) && ~isempty(gdat_out.data{1}))
case 'rtc' case 'rtc'
% in this case .data is empty, all in .scd_mems % in this case .data is empty, all in .scd_mems
testCase.assertTrue(isfield(gdat_out,'scd_mems') && isstruct(gdat_out.scd_mems)); testCase.assertTrue(isfield(gdat_out,'scd_mems') && isstruct(gdat_out.scd_mems));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment