Aufgrund einer Störung des s3 Storage, könnten in nächster Zeit folgende GitLab Funktionen nicht zur Verfügung stehen: Container Registry, Job Artifacs,. Wir bitten um Verständnis. Es wird mit Hochdruck an der Behebung des Problems gearbeitet. Weitere Informationen zur Störung des Object Storage finden Sie hier: https://maintenance.itc.rwth-aachen.de/ticket/status/messages/59-object-storage-pilot

Commit d7ae6197 authored by Dipl.-Ing. Jonas Stienen's avatar Dipl.-Ing. Jonas Stienen
Browse files

Adding fallback to integer floor if channel number calculation has residual...

Adding fallback to integer floor if channel number calculation has residual value. Includes a warning message.
parent d50746a3
......@@ -141,9 +141,12 @@ end
%% Channels
channels=this.nChannels/this.nDirections;
if(channels<1)
warning('Number of channels per record was not detected correctly, assuming 2 channel records');
if( channels < 1 )
warning( 'Number of channels per record was smaller than one, assuming 2 channel records' );
channels = 2;
elseif( mod( channels, 2 ) ~= 0 )
warning( [ 'Number of channels per record was not and integer number, trying floor() of ' num2str( channels ) ] );
channels = floor( channels );
end
daff_write_args.channels = channels;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment