Skip to content

Commit

Permalink
Add calls to retrieve results in example.py
Browse files Browse the repository at this point in the history
  • Loading branch information
gplessm committed Sep 11, 2017
1 parent 6d3d549 commit 08438fc
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions edisgo/examples/example.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,22 @@
# pickle.dump(network, open('test_network.pkl', 'wb'))
# network = pickle.load(open('test_network.pkl', 'rb'))

# Do non-linear power flow analysis with PyPSA
# network.analyze(mode='mv')
# Do non-linear power flow analysis with PyPSA (MV+LV)
# network.analyze()

# Print LV station secondary side voltage levels returned by PFA
# print(network.results.v_res(
# network.mv_grid.graph.nodes_by_attribute('lv_station'), 'lv'))

# Print voltage levels for entire LV grid
# for attr in ['lv_station', 'load', 'generator', 'branch_tee']:
# objs = []
# for lv_grid in network.mv_grid.lv_grids:
# objs.extend(lv_grid.graph.nodes_by_attribute(attr))
# print("\n\n\n{}\n".format(attr))
# print(network.results.v_res(
# objs, 'lv'))

# Print voltage level of all nodes
# print(network.results.pfa_v_mag_pu)

Expand Down

0 comments on commit 08438fc

Please sign in to comment.