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] parse_file don't change an element when a .dss file change it. #397

Closed
felipemarkson opened this issue Aug 16, 2022 · 1 comment · Fixed by #420
Closed

[BUG] parse_file don't change an element when a .dss file change it. #397

felipemarkson opened this issue Aug 16, 2022 · 1 comment · Fixed by #420
Labels
Category: Data Parsers parser issues Type: Bug Something isn't working

Comments

@felipemarkson
Copy link
Contributor

Describe the bug
Using the parse_file in a file that has a redirect to a file that changes an element in the model, the parser doesn't change in the PowerModelsDistribution Dictionary object.

Minimum Viable Example

DSS Files

// change_load.dss
Load.Load_1.bus1 = SOURCEBUS
// test.dss
Clear

new   circuit.test   bus1=SOURCEBUS   pu=1.0

New   Line.Line_1   bus1=SOURCEBUS   bus2=BUS_1

New   Load.Load_1   phases=3   conn=Wye   bus1=BUS_1   kw=0.1   kvar=0.03   model=1

redirect change_load.dss

solve

Julia Files

import PowerModelsDistribution
const PMD = PowerModelsDistribution

case_file = "test.dss"

model_dict = PMD.parse_file(case_file)

@assert (model_dict["load"]["load_1"]["bus"] == "sourcebus")

Expected behavior
On OpenDSS and OpenDSSDirect.jl this example works well.
The parser must change the element after a change command in the .dss file.

System Information (please complete the following information):

  • OS: Manjaro Linux x86_64
  • Version Kernel Linux 5.15.60-1-MANJARO
@pseudocubic
Copy link
Collaborator

To the best of my knowledge about the parser, this should work, so there is definitely a bug somewhere.

@pseudocubic pseudocubic added Type: Bug Something isn't working Category: Data Parsers parser issues labels Aug 17, 2022
pseudocubic added a commit that referenced this issue Jan 4, 2023
Fixes a bug where if a property is assigned via the pattern, e.g.,

`load.a1.bus1 = some_bus`

in a file that is different from the one where `load.a1` was defined, the assignment would fail.

Closes #397
pseudocubic added a commit that referenced this issue Jan 4, 2023
Fixes a bug where if a property is assigned via the pattern, e.g.,

`load.a1.bus1 = some_bus`

in a file that is different from the one where `load.a1` was defined, the assignment would fail.

Closes #397
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Category: Data Parsers parser issues Type: Bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants