Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
anaflom opened this issue May 2, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@anaflom
Copy link

anaflom commented May 2, 2024

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 anaflom added the bug Something isn't working label May 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant