Changeset 209


Ignore:
Timestamp:
Jan 11, 2014, 8:10:16 PM (4 years ago)
Author:
tjniskan
Message:
  • Fixed a bug small in aedes_readvnmr
  • Added support in readvnmr for mge3d data

A vnmr_recon/mge3d_recon.m
M aedes_readvnmr.m
M aedes_revision.m

Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • aedes_readvnmr.m

    r202 r209  
    550550      length(procpar.pelist)>1
    551551    phasetable = {'t1',reshape(procpar.pelist,procpar.etl,[]).'};
    552   end
     552        end
    553553 
     554        if ~isempty(phasetable)
     555                Dat.phasetable = phasetable{1,2};
     556        else
     557                Dat.phasetable = [];
     558        end
     559       
    554560  %% Abort and throw error if phasetable cannot be read and the FID-file
    555561  % has not been sorted
    556   if isempty(phasetable) && ~isfield(procpar,'flash_converted')
    557     DATA=[];
    558     if ~Dat.ShowErrors
    559       msg_out={['Could not find the required phase table "' ...
    560                 procpar.petable{1} '" in the following folders'],...
    561                ['"' tabpath '".']};
    562     else
    563       error('Could not find the required phase table "%s" in %s',...
    564             procpar.petable{1},tabpath)
    565     end
    566     return
    567   elseif ( isempty(phasetable) && isfield(procpar,'flash_converted') ) || ...
    568       ~Dat.UsePhaseTable
    569     %% If the FID-file has been sorted, the reading can continue but
    570     % throw a warning.
    571     fprintf(1,'Warning: aedes_readfid: Could not find phasetable "%s" in "%s"!\n',procpar.petable{1},tabpath)
    572     Dat.phasetable=[];
    573   else
    574     Dat.phasetable = phasetable{1,2};
    575   end
     562%   if isempty(phasetable) && ~isfield(procpar,'flash_converted')
     563%     DATA=[];
     564%     if ~Dat.ShowErrors
     565%       msg_out={['Could not find the required phase table "' ...
     566%                 procpar.petable{1} '" in the following folders'],...
     567%                ['"' tabpath '".']};
     568%     else
     569%       error('Could not find the required phase table "%s" in %s',...
     570%             procpar.petable{1},tabpath)
     571%     end
     572%     return
     573%   elseif ( isempty(phasetable) && isfield(procpar,'flash_converted') ) || ...
     574%       ~Dat.UsePhaseTable
     575%     %% If the FID-file has been sorted, the reading can continue but
     576%     % throw a warning.
     577%     fprintf(1,'Warning: aedes_readfid: Could not find phasetable "%s" in "%s"!\n',procpar.petable{1},tabpath)
     578%     Dat.phasetable=[];
     579%   else
     580%     Dat.phasetable = phasetable{1,2};
     581%   end
    576582end
    577583
  • aedes_revision.m

    r208 r209  
    9393% bash-script every time it is called so that this file "aedes_revision.m" is
    9494% always in the list of committed files. DO NOT EDIT THE NEXT LINE!!!
    95 % - Svn Hook -
     95% - SVN Hook -
Note: See TracChangeset for help on using the changeset viewer.

Powered by Trac 1.0.9.Copyright © Juha-Pekka Niskanen 2008