Skip to content
Snippets Groups Projects
Commit edc29165 authored by Federico Felici's avatar Federico Felici Committed by Olivier Sauter
Browse files

Cleanup and add warning ID

parent 007d7b5d
No related branches found
No related tags found
1 merge request!4Feature/testsuite
......@@ -21,10 +21,10 @@ end
% Preallocate memory and get data
ids_struct_out(1:tcv_circuit_info.ntotcircuits) = ids_structures;
for ii=1:tcv_circuit_info.ntotcircuits
if shot == -1; % model shot
if shot == -1 % model shot
% replace by dummy
tmpdata.dim{1} = [];
tmpdata.data = [];
tmpdata.data = [];
warning('no time data loaded for shot %d',shot);
ids_struct_out_description{ii}.current = 'not loaded';
else
......
......@@ -22,7 +22,7 @@ end
ids_struct_out(1:tcv_circuit_info.ntotpowersupplies) = ids_structures;
for ii=1:tcv_circuit_info.ntotpowersupplies
if shot ==-1
warning('no time data loaded for shot %d',shot);
warning('TCV:IDS:NoTimeData','no time data loaded for shot %d',shot);
tmpdata.dim{1} = [];
tmpdata.data = [];
% empty dummy
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment