Skip to content

Commit 7acd5ea

Browse files
author
Marco Dal Molin
committed
Minor interface change. Version 1.2.1
1 parent f317f6b commit 7acd5ea

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
setuptools.setup(
55
name='superflexpy',
6-
version='1.2.0',
6+
version='1.2.1',
77
author='Marco Dal Molin, Fabrizio Fenicia, Dmitri Kavetski',
88
author_email='marco.dalmolin.1991@gmail.com',
99
description='Framework for building hydrological models',

superflexpy/framework/network.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class Network(GenericComponent):
3636
tree.
3737
"""
3838

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

6262
self._content = nodes
63-
self._downstream = topography
63+
self._downstream = topology
6464

6565
self._build_network()
6666

@@ -69,7 +69,7 @@ def __init__(self, nodes, topography):
6969
def get_output(self, solve=True):
7070
"""
7171
This method solves the network, solving each node and putting together
72-
their outputs according to the topography of the network.
72+
their outputs according to the topology of the network.
7373
7474
Parameters
7575
----------

superflexpy/implementation/models/thur_M2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@
237237
stgallen,
238238
waengi,
239239
],
240-
topography={
240+
topology={
241241
'andelfingen': None,
242242
'appenzell': 'stgallen',
243243
'frauenfeld': 'andelfingen',

test/unittest/06_3Cats_2HRUs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ def _init_model(self, solver):
112112

113113
# Define the network
114114
net = Network(nodes = [cat1, cat2, cat3],
115-
topography = {
115+
topology = {
116116
'Cat1' : 'Cat3',
117117
'Cat2' : 'Cat3',
118118
'Cat3' : None,

0 commit comments

Comments
 (0)