dss-extensions / dss-extensions/AltDSS-Schema

Question about Circuit.ToJSON() output when overrides to LineCode, XfmrCode, or other codes exist for a component

Open
#9 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
5
Forks
1
PR merge metrics
No merged PRs in 30d

Description

In an OpenDSS file, an entry for a new line, transformer, or other component can reference a code (e.g., a LineCode) and then override values in the code by specifying new values in the definition of the component, after reference to the code. For example:
`New Line.lineA .... Linecode=LineCodeB, EmergAmps= 410`
In this example, the line's EmergAmps value will be 410, regardless of what LineCodeB specifies. My question is, can I trust that the output of `Circuit.ToJSON()` will always capture any overridden code values for a component?

In the given example, this would mean that the JSON output for a line specified as:
`New Line.lineA .... EmergAmps= 410, Linecode=LineCodeB`
would reflect the value of EmergAmps as given in LineCodeB, and the one used in any analysis by OpenDssDirect. I just want to verify that this is the way the `ToJson` function works and the way the JSON schema is used, for any component.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.