-
Notifications
You must be signed in to change notification settings - Fork 142
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
Add a flag to export only the matpower spec and not extra PowerModels data #707
Comments
The default semantics is that if you write the internal data to ".m" and then read it back to PowerModels you will get the same internal data. I think that is a suitable default setting. Adding a flag to omit the extra data upon request seems reasonable. A work around for the current version would be to delete the extra data from the data dict before calling |
export_matpower
@frederikgeth I was looking into this a bit more. What were you thinking for components like storage and switches, which do not require an extensions table but also are not part of the Matpower format? |
Sorry for the delay and lack of detail. So the problem I ran into originally is that PowerModels.jl/src/io/matpower.jl Line 657 in 43ae4d0
_export_extra_data to work around this.
|
I see in that case, I would just propose to fix For example, in |
So we tend to have failures here PowerModels.jl/src/io/matpower.jl Line 1088 in 43ae4d0
BoundsError: attempt to access Float64 when there is a vector instead of a dict where it isn't expected.
|
Ok let me try to make this more robust and get back to you. |
Right now, if there is supplementary data in the PM data dictionary, it is written out by default through the
_export_extra_data
data function. An option to suppress this would be convenient.The text was updated successfully, but these errors were encountered: