Skip to content

Commit

Permalink
Cosmetic changes
Browse files Browse the repository at this point in the history
On branch develop
	modified:   loadpfile.m
  • Loading branch information
Jon-Fredrik Nielsen committed Oct 29, 2023
1 parent 7eb855d commit 56f5fd7
Showing 1 changed file with 5 additions and 23 deletions.
28 changes: 5 additions & 23 deletions +toppe/+utils/loadpfile.m
Original file line number Diff line number Diff line change
Expand Up @@ -5,32 +5,15 @@
%
% Inputs:
% pfile string P-file name
% echo [1] only get data for this echo (default: load all echoes)
% slicestart [1] get data starting from this slice index (1:N slices, default: 2)
% sliceend [1] "" except ending slice (default: N)
% echo [1] only get data for this echo (default: load all echoes). To use default value, set to [].
% slicestart [1] get data starting from this slice index (1:N slices, default: 2) To use default value, set to [].
% sliceend [1] "" except ending slice (default: N) To use default value, set to [].
%
% Kwarg input options:
% acqOrder true/false If true, data is sorted in the order of acquisition.
% acqOrder true/false If true, data is sorted in the order of acquisition. (default: false)
%
% Output dimensions of dat:
% [nFID, nc, nDabSlice, 1, maxView]
%
% This file is part of the TOPPE development environment for platform-independent MR pulse programming.
%
% TOPPE is free software: you can redistribute it and/or modify
% it under the terms of the GNU Library General Public License as published by
% the Free Software Foundation version 2.0 of the License.
%
% TOPPE is distributed in the hope that it will be useful,
% but WITHOUT ANY WARRANTY; without even the implied warranty of
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
% GNU Library General Public License for more details.
%
% You should have received a copy of the GNU Library General Public License
% along with TOPPE. If not, see <http://www.gnu.org/licenses/old-licenses/lgpl-2.0.html>.
%
% (c) 2016 The Regents of the University of Michigan
% Jon-Fredrik Nielsen, jfnielse@umich.edu

import toppe.utils.*

Expand Down Expand Up @@ -166,8 +149,7 @@
dat = double(dat); % Convert to double in place
fclose(fid);

% sort data in order of acquisition
% [nFID, nc, nDabSlice, 1, maxView]
%% Sort data in order of acquisition
if arg.acqOrder
dat = permute(dat, [1 2 5 3 4]); % [nFID nc maxView nDabSlice]
[nFID nc maxView nDabSlice] = size(dat);
Expand Down

0 comments on commit 56f5fd7

Please sign in to comment.