Homer3 icon indicating copy to clipboard operation
Homer3 copied to clipboard

[BUG]: wrong output size for GetMeasList when more than one condition is present

Open anaflom opened this issue 9 months ago • 0 comments

Version of Homer3 you are using

Homer3-1.80.2

Your environment (MATLAB environment and OS)

MATLAB R2024a; Windows 11 Pro 64-bit 23H2

Description of the issue

When applying the function ml = GetMeasList(obj, options) to a DataClass containing more than 1 condition the output has one extra row.

Steps to reproduce: mlAct = dcAvg.GetMeasList(); Where dcAvg is a data cass containing more than 1 condition

This is because it enters into the if the statement of line 373 (if obj.measurementList(ii).GetCondition()>1), and the loop breaks, but ii has already been updated and then the unused rows are removed doing ml(ii+1:end,:) = [];

anaflom avatar May 02 '24 08:05 anaflom