Skip to content

Commit

Permalink
multiple circuit fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jvela018 committed Dec 23, 2021
1 parent e8ca7b0 commit 370792f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions build/lib/elmer_circuitbuilder.py
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ def getTerminalType(self):
class Circuit:
"""Circuit class is associated to a circuit index,
holds the components within circuit and requires a reference node (default=1)"""
def __init__(self, index, components=[], ref_node=1):
def __init__(self, index, components, ref_node=1):
"""
Parameters
----------
Expand Down Expand Up @@ -373,7 +373,7 @@ def number_of_circuits(ncircuits):
"""
c = {}
for i in range(1, ncircuits+1):
c[i] = Circuit(i)
c[i] = Circuit(i,[])

return c

Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: elmer-circuitbuilder
Version: 0.0.5
Version: 0.0.6
Summary: Python module for creating the circuit simulation definitions for Elmer FEM. The circuit definitions enable easy setup of coils (e.g. massive, stranded, and foil) in 2D and 3D for magnetodynamics applications.
Home-page: https://github.com/ElmerCSC/elmer_circuitbuilder.git
Author: Jonathan Velasco
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
test_suite='tests',
tests_require=test_requirements,
url='https://github.com/ElmerCSC/elmer_circuitbuilder.git',
version='v0.0.5',
version='v0.0.6',
zip_safe=False,
extras_require={"dev":["pytest>=3.7"], },
py_modules=["elmer_circuitbuilder"],
Expand Down

0 comments on commit 370792f

Please sign in to comment.