Skip to content

Commit

Permalink
Make all filenames PEP-8 compliant
Browse files Browse the repository at this point in the history
Signed-off-by: Steffen Vogel <steffen.vogel@opal-rt.com>
  • Loading branch information
stv0g committed Jun 17, 2024
1 parent aecadd0 commit 824caa6
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions cimpy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
import cimpy.utils
from cimpy.cimexamples import import_example
from cimpy.cimexamples import export_example
from cimpy.cimexamples import addExternalNetworkInjection_example
from cimpy.cimexamples import convertToBusBranch_example
from cimpy.cimexamples import add_external_network_injection_example
from cimpy.cimexamples import convert_to_bus_branch_example
12 changes: 6 additions & 6 deletions cimpy/cimexamples.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,26 +4,26 @@
def import_example():
"""TODO: Add documentation"""
base = Path(__file__).resolve().parent
example = base / "examples" / "importCIGREMV.py"
example = base / "examples" / "import_cigre_mv.py"
exec(open(example).read())


def export_example():
"""TODO: Add documentation"""
base = Path(__file__).resolve().parent
example = base / "examples" / "exportCIGREMV.py"
example = base / "examples" / "export_cigre_mv.py"
exec(open(example).read())


def convertToBusBranch_example():
def convert_to_bus_branch_example():
"""TODO: Add documentation"""
base = Path(__file__).resolve().parent
example = base / "examples" / "convertToBusBranch.py"
example = base / "examples" / "convert_to_bus_branch.py"
exec(open(example).read())


def addExternalNetworkInjection_example():
def add_external_network_injection_example():
"""TODO: Add documentation"""
base = Path(__file__).resolve().parent
example = base / "examples" / "addExternalNetworkInjection.py"
example = base / "examples" / "add_external_network_injection.py"
exec(open(example).read())
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

example = Path(__file__).resolve().parent

# called as cimpy.examples.addExternalNetworkInjection() or file run from quickstart directory?
# called as cimpy.examples.convert_to_bus_branch() or file run from quickstart directory?
if "cimexamples.py" in str(__file__):
sample_folder = example / "examples" / "sampledata" / "CIGRE_MV"
else:
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 824caa6

Please sign in to comment.