diff --git a/build/lib/elmer_circuitbuilder.py b/build/lib/elmer_circuitbuilder.py index 6573581..3c04536 100644 --- a/build/lib/elmer_circuitbuilder.py +++ b/build/lib/elmer_circuitbuilder.py @@ -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 ---------- @@ -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 diff --git a/elmer_circuitbuilder/__pycache__/elmer_circuitbuilder.cpython-39.pyc b/elmer_circuitbuilder/__pycache__/elmer_circuitbuilder.cpython-39.pyc index 92eb046..be24971 100644 Binary files a/elmer_circuitbuilder/__pycache__/elmer_circuitbuilder.cpython-39.pyc and b/elmer_circuitbuilder/__pycache__/elmer_circuitbuilder.cpython-39.pyc differ diff --git a/elmer_circuitbuilder/elmer_circuitbuilder.egg-info/PKG-INFO b/elmer_circuitbuilder/elmer_circuitbuilder.egg-info/PKG-INFO index 4380b21..9d4fa25 100644 --- a/elmer_circuitbuilder/elmer_circuitbuilder.egg-info/PKG-INFO +++ b/elmer_circuitbuilder/elmer_circuitbuilder.egg-info/PKG-INFO @@ -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 diff --git a/setup.py b/setup.py index b2d88de..d62d92c 100644 --- a/setup.py +++ b/setup.py @@ -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"],