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

force case sensitive check if IDS_list exists

parent 4ee32be6
No related branches found
No related tags found
1 merge request!88fix TCV ids for version 3.31
...@@ -78,18 +78,22 @@ if any(mask), ...@@ -78,18 +78,22 @@ if any(mask),
end end
params_ids2database = params; params_ids2database = params;
keyboard
% check ids_names % check ids_names
ids_names=fieldnames(ids2put); ids_names=fieldnames(ids2put);
try [a1,a2]=which('ids_list');
if exist('IDS_list') if isempty(a1)
ids_full_list = IDS_list;
else
ids_full_list = ids_list;
end
catch
ids_full_list = tcv_available_ids; ids_full_list = tcv_available_ids;
warning(['IDS_list not available, quick fix introducing list of ids available for TCV: ' fprintf('%s ',ids_full_list{:}) char(10)]); warning(['IDS_list not available, quick fix introducing list of ids available for TCV: ' fprintf('%s ',ids_full_list{:}) char(10)]);
else
% differentiate between ids_list and IDS_list (which or exist not sufficient)
[b1,b2,b3]=fileparts(a1);
try
[c2]=ls(fullfile(b1,'ids_list.*'));
ids_full_list = ids_list;
catch
ids_full_list = IDS_list;
end
end end
ids_names_notok = setdiff(ids_names,ids_full_list); ids_names_notok = setdiff(ids_names,ids_full_list);
if ~isempty(ids_names_notok) if ~isempty(ids_names_notok)
......
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