Skip to content
Snippets Groups Projects
Commit 8772e25a authored by jacques.grelet_ird.fr's avatar jacques.grelet_ird.fr
Browse files

reorganisation du code

parent d6b349ba
No related branches found
No related tags found
No related merge requests found
......@@ -85,10 +85,6 @@ switch fid
% if file exist, load in workspace
% --------------------------------
load( config_file, 'root', 'tsg' );
% transforme filename saved in tsg.qc.hash to tsg_nc object
% ---------------------------------------------------------
tsg.qc.hash = tsg_nc(tsg.qc.hash);
catch
......@@ -103,6 +99,20 @@ switch fid
end
% If there no field version or wrong version, initialize
% -------------------------------------------------------
if ~isfield( root, 'version') || ~strcmp(root.version, VERSION)
% call new config private function
% --------------------------------
new_config;
end
% transforme filename saved in tsg.qc.hash to tsg_nc object
% ---------------------------------------------------------
tsg.qc.hash = tsg_nc(tsg.qc.hash);
% display waitbar
% ---------------
waitbar( 1/2, wb, 'loading structure tsg' );
......@@ -128,17 +138,7 @@ switch fid
'delete it.'], config_file);
quitProgram(hTsgGUI, DEFAULT_PATH_FILE);
end
% If there no field version or wrong version, initialize
% -------------------------------------------------------
if ~isfield( root, 'version') || ~strcmp(root.version, VERSION)
% call new config private function
% --------------------------------
new_config;
end
end
end
......
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