Commit 99abfa20 authored by felix's avatar felix
Browse files

update notebooks

parent da04cb7a
# go-with-the-flow
This repository is all about simulating flow driven pruning in biological flow networks.
# kirchhoff-circuits
Collection of routines for creation and manipulation of Kirchhoff circuits based on resistor-only networks, together with 2D/3D spatial embeddings.
......@@ -27,12 +27,12 @@ def plot_networkx(input_graph,**kwargs):
if k in options:
options[k]=v
if 'node_data' in kwargs:
for sk,sv in kwargs['node_data'].items():
node_data[sk]=sv.to_numpy()
if 'edge_data' in kwargs:
for sk,sv in kwargs['edge_data'].items():
edge_data[sk]=sv.to_numpy()
if 'node_data' in kwargs:
for sk,sv in kwargs['node_data'].items():
node_data[sk]=sv.to_numpy()
if 'edge_data' in kwargs:
for sk,sv in kwargs['edge_data'].items():
edge_data[sk]=sv.to_numpy()
fig = go.Figure()
add_traces_nodes(fig,options,input_graph,node_data)
......
......@@ -8,7 +8,6 @@
import networkx as nx
import numpy as np
# not finalized! todo: implement peridoc cell definition
# construct a non-trivial, periodic 3d embedding
def init_graph_from_crystal(crystal_type,periods):
......
This diff is collapsed.
......@@ -6,8 +6,6 @@
# @Last modified time: 2021-05-24T00:03:32+02:00
# @License: MIT
import setuptools
with open("README.md", "r", encoding="utf-8") as fh:
......@@ -15,10 +13,10 @@ with open("README.md", "r", encoding="utf-8") as fh:
setuptools.setup(
name="kirchhoff", # Replace with your own username
version="0.1.0",
version="0.1.1",
author="felixk1990",
author_email="felixuwekramer@protonmail.com",
description="Collecton of routines for creation and manipulation of Kirchhoff circuits based on resistor-only networks, together with 2D/3D spatial embeddings. ",
description="Collection of routines for creation and manipulation of Kirchhoff circuits based on resistor-only networks, together with 2D/3D spatial embeddings. ",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/felixk1990/kirchhoff-circuit",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment