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

fixing read_list_by_name looping on MAX_ADS_SUB_COMMANDS case with lo… #438

Merged
merged 1 commit into from
Dec 6, 2024

Conversation

SISAutomationIMA
Copy link
Contributor

This pull request fixes an issue encountered when using the read_list_by_name function with structure_defs. If more than 500 tags are read and structure_defs is provided with a size matching the tags being requested, the for loop in sum_read raises an error. This happens because the tag list is sliced, but structure_defs is not.

To address this, I adjusted the for loop to ensure that the sliced chunk also includes the corresponding tags in structure_defs. This change resolves the issue.

@chrisbeardy
Copy link
Collaborator

thanks for this, will look at this shortly

@chrisbeardy chrisbeardy merged commit 9578a46 into stlehmann:master Dec 6, 2024
5 checks passed
@coveralls
Copy link

Pull Request Test Coverage Report for Build 12137829102

Warning: This coverage report may be inaccurate.

This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

Details

  • 2 of 2 (100.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.002%) to 94.953%

Totals Coverage Status
Change from base Build 11345095278: 0.002%
Covered Lines: 1731
Relevant Lines: 1823

💛 - Coveralls

@chrisbeardy
Copy link
Collaborator

nice work, thank you, how do you fancy taking a look and seeing if this affects write_list_by_name too?

@SISAutomationIMA
Copy link
Contributor Author

nice work, thank you, how do you fancy taking a look and seeing if this affects write_list_by_name too?

Thank you for the Response ! After testing and reviewing the source code, I found that the issue only affects the read_list_by_name function. The loop in the write_list_by_name function handles the operation correctly, so no changes are needed there.

@chrisbeardy
Copy link
Collaborator

Awesome thank you so much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants