function axes_info_out = reset_donors(axes_info_in, new_donor_dims)
% axes_info_out = reset_donors(axes_info_in, new_donor_dims)
%    reset which axes are to be considered donor axes (and hence which are to be
%    considered acceptor axes) for covariance processing

axes_info_out = axes_info_in;

num_dims = sum(axes_info_in(26,:) > 1);
axes_info_out(27,:) = -1; % -1 is code for unused dim (which is == to donor dim)
axes_info_out(27,1:num_dims) = 1;
axes_info_out(27,new_donor_dims) = -1; % -1 is code for donor dims