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

Can't parse PSSE file where the second record of a transformer block starts with zero #842

Open
manuelma opened this issue Sep 8, 2022 · 1 comment

Comments

@manuelma
Copy link

manuelma commented Sep 8, 2022

I have a PSSE .raw file where one of the transformer data blocks looks as follows:

1061, 10602, ,1, , , , , , , 'XXXXX' , 1, 2   / load
0, 0.7, 9999
0.955, ,0, 9999, 9999, 15, 1, 10602, 1.04, 0.84, 1.09, 1.05, 32, , , 
 , ,

So the R1-2 parameter (first value in the second row) is zero, which should be valid but since the line starts with zero, the parser interprets it as a section start and fails. Check the line below

elseif line_number > 3 && length(elements) != 0 && first_element == "0"

One fix could be elseif line_number > 3 && length(elements) == 1 && first_element == "0", because only for section starts elements will be of length 1.

@hei06j
Copy link
Contributor

hei06j commented Jul 7, 2024

This may have been resolved with in the latest release. See issue #912.

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

No branches or pull requests

2 participants