Skip to content

Commit

Permalink
Minor interface change. Version 1.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Marco Dal Molin committed Apr 17, 2021
1 parent f317f6b commit 7acd5ea
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

setuptools.setup(
name='superflexpy',
version='1.2.0',
version='1.2.1',
author='Marco Dal Molin, Fabrizio Fenicia, Dmitri Kavetski',
author_email='marco.dalmolin.1991@gmail.com',
description='Framework for building hydrological models',
Expand Down
10 changes: 5 additions & 5 deletions superflexpy/framework/network.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class Network(GenericComponent):
tree.
"""

def __init__(self, nodes, topography):
def __init__(self, nodes, topology):
"""
This is the initializer of the class Network.
Expand All @@ -45,8 +45,8 @@ def __init__(self, nodes, topography):
nodes : list(superflexpy.framework.node.Node)
List of nodes that belongs to the network. The order is not
important.
topography : dict(str : str)
Topography of the network. Keys are the id of the nodes and values
topology : dict(str : str)
Topology of the network. Keys are the id of the nodes and values
are the id of the downstream node the key. Since the network must
be a tree, each key has only one downstream element
"""
Expand All @@ -60,7 +60,7 @@ def __init__(self, nodes, topography):
raise TypeError(message)

self._content = nodes
self._downstream = topography
self._downstream = topology

self._build_network()

Expand All @@ -69,7 +69,7 @@ def __init__(self, nodes, topography):
def get_output(self, solve=True):
"""
This method solves the network, solving each node and putting together
their outputs according to the topography of the network.
their outputs according to the topology of the network.
Parameters
----------
Expand Down
2 changes: 1 addition & 1 deletion superflexpy/implementation/models/thur_M2.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@
stgallen,
waengi,
],
topography={
topology={
'andelfingen': None,
'appenzell': 'stgallen',
'frauenfeld': 'andelfingen',
Expand Down
2 changes: 1 addition & 1 deletion test/unittest/06_3Cats_2HRUs.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def _init_model(self, solver):

# Define the network
net = Network(nodes = [cat1, cat2, cat3],
topography = {
topology = {
'Cat1' : 'Cat3',
'Cat2' : 'Cat3',
'Cat3' : None,
Expand Down

0 comments on commit 7acd5ea

Please sign in to comment.