Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
yichen88 committed Dec 6, 2018
1 parent 44fd0fe commit d4f0828
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions py-powsybl/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ if __name__ == '__main__':
port = 3338
launch("config2", port)
if connect(port):
n1 = load("/path/to/case-file/example.xiidm")
n1 = load_network("/path/to/case-file/example.xiidm")
dump_lines_flow(n1)
lf = run_load_flow(n1)
Expand All @@ -62,7 +62,7 @@ if __name__ == '__main__':
# or save(n1, "/path/to/output/example.xiidm")
# don't forget to shundown jvm
shundown_pypowsybl()
shutdown_pypowsybl()
else:
print("can not connect to jvm")
Expand Down
4 changes: 2 additions & 2 deletions py-powsybl/pypowsybl/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def connect(nb_port):
return False


def load(path):
def load_network(path):
return Network(importer.loadNetwork(path))


Expand Down Expand Up @@ -124,7 +124,7 @@ def save(network, str_path):
exporter.export(export_format, network.get_java_network(), default_exporter_properties, dest_path)


def shundown_pypowsybl():
def shutdown_pypowsybl():
gateway.shutdown()


Expand Down

0 comments on commit d4f0828

Please sign in to comment.