Skip to content

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

@John-Boik

Description

@John-Boik

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions