Aufgrund einer Wartung wird GitLab am 29.10. zwischen 9:00 und 10:00 Uhr kurzzeitig nicht zur Verfügung stehen. / Due to maintenance, GitLab will be temporarily unavailable on 29.10. between 9:00 and 10:00 am.

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