Skip to content
Snippets Groups Projects
Commit c958e522 authored by felix's avatar felix
Browse files

update setup

parent 35d91916
No related branches found
No related tags found
No related merge requests found
......@@ -99,6 +99,7 @@ def setup_flow_circuit(skeleton=None, sourceMode=None, plexusMode=None, **kwargs
return kirchhoff_graph
@dataclass
class FlowCircuit(Circuit):
......@@ -190,7 +191,8 @@ class FlowCircuit(Circuit):
s = self.custom[node]*self.scales['flow']
self.G.nodes[node]['source'] = s
self.nodes['source'][j] = s
# self.nodes['source'][j] = s
self.nodes.at[j, 'source'] = s
else:
print('Warning, custom source values ill defined, setting default!')
......@@ -371,7 +373,10 @@ class FlowCircuit(Circuit):
"""
self.G.nodes[node]['source'] = self.nodes_source[idx]*self.scales['flow']
self.nodes['source'][j] = self.nodes_source[idx]*self.scales['flow']
# self.nodes['source'][j] = self.nodes_source[idx]*self.scales['flow']
val = self.nodes_source[idx]*self.scales['flow']
self.nodes.at[j, 'source'] = val
# different init potetnial functions
def set_terminals_potentials(self, p0):
......
......@@ -13,7 +13,7 @@ with open("README.md", "r", encoding="utf-8") as fh:
setuptools.setup(
name="kirchhoff",
version="0.2.2",
version="0.2.3",
author="felixk1990",
author_email="felixuwekramer@protonmail.com",
description="Collection of routines for creation and manipulation of Kirchhoff circuits based on resistor-only networks, together with 2D/3D spatial embeddings. ",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment