Closed dorahermes closed 2 years ago
I got an error in line 142 of readMef3 that seems to be related to loading ranges, with the any command returning 2 rather than 1 value in the current version. It is easily fixed with code below:
current: if isempty(ranges) || ~isnumeric(ranges) || size(ranges, 2) ~= 2 || size(ranges, 1) < 1 || any(ranges(:) < 0) || any(rem(ranges, 1) ~= 0)
if isempty(ranges) || ~isnumeric(ranges) || size(ranges, 2) ~= 2 || size(ranges, 1) < 1 || any(ranges(:) < 0) || any(rem(ranges, 1) ~= 0)
fix: if isempty(ranges) || ~isnumeric(ranges) || size(ranges, 2) ~= 2 || size(ranges, 1) < 1 || any(ranges(:) < 0) || any(rem(ranges, 1) ~= 0,'all')
if isempty(ranges) || ~isnumeric(ranges) || size(ranges, 2) ~= 2 || size(ranges, 1) < 1 || any(ranges(:) < 0) || any(rem(ranges, 1) ~= 0,'all')
tagging @MaxvandenBoom
You're right, that was a very recent addition. I applied your solution, checked it and it works! Thank you!
I got an error in line 142 of readMef3 that seems to be related to loading ranges, with the any command returning 2 rather than 1 value in the current version. It is easily fixed with code below:
current:
if isempty(ranges) || ~isnumeric(ranges) || size(ranges, 2) ~= 2 || size(ranges, 1) < 1 || any(ranges(:) < 0) || any(rem(ranges, 1) ~= 0)
fix:
if isempty(ranges) || ~isnumeric(ranges) || size(ranges, 2) ~= 2 || size(ranges, 1) < 1 || any(ranges(:) < 0) || any(rem(ranges, 1) ~= 0,'all')
tagging @MaxvandenBoom