Skip to content
Snippets Groups Projects

Small fixes

Merged Olivier Sauter requested to merge small_fixes into master
3 files
+ 16
5
Compare changes
  • Side-by-side
  • Inline
Files
3
@@ -98,7 +98,18 @@ params_not_in_tcv2ids = {'run_out','occurence','tree_user','tree_tokamak','tree_
@@ -98,7 +98,18 @@ params_not_in_tcv2ids = {'run_out','occurence','tree_user','tree_tokamak','tree_
params_tcv2ids = rmfield(params_tcv2ids2database,params_not_in_tcv2ids);
params_tcv2ids = rmfield(params_tcv2ids2database,params_not_in_tcv2ids);
[ids_from_tcv,idsok] = tcv2ids(shot,params_tcv2ids);
[ids_from_tcv,idsok] = tcv2ids(shot,params_tcv2ids);
ids_from_tcv.params_tcv2ids2database = params_tcv2ids2database;
ids_from_tcv.params_tcv2ids2database = params_tcv2ids2database;
ids_from_tcv.params_tcv2ids2database
 
% check that coreprofiles is ok, could mean anaprofs did not succeed
 
if isfield(ids_from_tcv,'core_profiles')
 
if isempty(ids_from_tcv.core_profiles.time)
 
warning([char(10) '*************' char(10) ...
 
'core_profiles.time is empty, probably no data in CONF nodes for TCV, check with hldsi(shot) command on SPC-EPFL lacs computers' ...
 
char(10) '*************' char(10)]);
 
return
 
end
 
end
 
 
%% can plot with: [plotids_H] = plotids([],idsok.ids{1},idsok.ids{2});
%% can plot with: [plotids_H] = plotids([],idsok.ids{1},idsok.ids{2});
if isfield(ids_from_tcv,'tf')
if isfield(ids_from_tcv,'tf')
% avoid present problem of not saving data if ids_from_tcv.tf.field_map{1}.time is not set
% avoid present problem of not saving data if ids_from_tcv.tf.field_map{1}.time is not set
Loading