NREL / disco

DISCO
BSD 3-Clause "New" or "Revised" License
10 stars 5 forks source link

Consistency in output in feeder_stats.json #123

Closed daniel-thom closed 2 years ago

daniel-thom commented 2 years ago

The upgrades module generates a feeder_stats.json output file. It has two fields at the top level: before_upgrades and after_upgrades. Each of those entries contains an output object. The files thermal_summary.json and voltage_summary.json use a different format. They report the data as an array of output objects where each object has a field called stage which can be Initial or Final.

Should these be consistent?

daniel-thom commented 2 years ago

Here is what we brainstormed today.

{
  "common_parameters": {
        "total_load(kVABase)": 851.8510687146893,
        "total_load(kW)": 829.4206366308418,
        "total_PV(kW)": 1658.8400000000001,
        "total_PV(kVARated)": 1658.8400000000001
  },
  "stage_results":
  [
    {
        "stage": "Initial",
        "source_bus": "p12udt1277-p12uhs0_1247x",
        "feeder_head_name": "feeder_p12udt1277-p12uhs0_1247x",
        "feeder_head_basekv": 12.5,
        "source_num_nodes": 3,
        "total_num_buses_in_circuit": 366,
        "substation_xfmr": null,
        "num_buses": 366,
        "num_nodes": 695,
        "num_loads": 248,
        "num_lines": 295,
        "num_transformers": 70,
        "num_pv_systems": 78,
        "num_capacitors": 1,
        "num_regulators": 0
    }
  ]
}