Skip to content

Commit 370792f

Browse files
author
jvela018
committed
multiple circuit fix
1 parent e8ca7b0 commit 370792f

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

build/lib/elmer_circuitbuilder.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ def getTerminalType(self):
334334
class Circuit:
335335
"""Circuit class is associated to a circuit index,
336336
holds the components within circuit and requires a reference node (default=1)"""
337-
def __init__(self, index, components=[], ref_node=1):
337+
def __init__(self, index, components, ref_node=1):
338338
"""
339339
Parameters
340340
----------
@@ -373,7 +373,7 @@ def number_of_circuits(ncircuits):
373373
"""
374374
c = {}
375375
for i in range(1, ncircuits+1):
376-
c[i] = Circuit(i)
376+
c[i] = Circuit(i,[])
377377

378378
return c
379379

5 Bytes
Binary file not shown.

elmer_circuitbuilder/elmer_circuitbuilder.egg-info/PKG-INFO

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Metadata-Version: 2.1
22
Name: elmer-circuitbuilder
3-
Version: 0.0.5
3+
Version: 0.0.6
44
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.
55
Home-page: https://github.com/ElmerCSC/elmer_circuitbuilder.git
66
Author: Jonathan Velasco

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
test_suite='tests',
4141
tests_require=test_requirements,
4242
url='https://github.com/ElmerCSC/elmer_circuitbuilder.git',
43-
version='v0.0.5',
43+
version='v0.0.6',
4444
zip_safe=False,
4545
extras_require={"dev":["pytest>=3.7"], },
4646
py_modules=["elmer_circuitbuilder"],

0 commit comments

Comments
 (0)