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

PowerFactory: allow empty matrices in DGS parser #2276

Merged
merged 5 commits into from
Sep 12, 2022

Conversation

zamarrenolm
Copy link
Member

Signed-off-by: Luma zamarrenolm@aia.es

Please check if the PR fulfills these requirements (please use '[x]' to check the checkboxes, or submit the PR and then click the checkboxes)

  • The commit message follows our guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
Bug fix

What is the current behavior? (You can also link to an open issue here)
DGS lines in a data block may have empty matrices (mTaps), even if the header declared a specific size.
The parser always expected at least the number of rows and cols declared in the header.

What is the new behavior (if this is a feature change)?
The DGS lines may have empty matrices (with either columns or rows equal to zero).
All matrices must have exactly the number of columns declared in the header .

Signed-off-by: Luma <zamarrenolm@aia.es>
@zamarrenolm zamarrenolm changed the title PowerFactory: allow an empty matrix in DGS parser PowerFactory: allow empty matrices in DGS parser Sep 12, 2022
Signed-off-by: José Antonio Marqués <marquesja@aia.es>
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

100.0% 100.0% Coverage
0.0% 0.0% Duplication

@geofjamg geofjamg merged commit 39f9c7f into main Sep 12, 2022
@geofjamg geofjamg deleted the powerfactory_allow_empty_matrix branch September 12, 2022 14:04
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