1
0
mirror of https://github.com/gsi-upm/soil synced 2025-08-24 03:52:20 +00:00

Updated to 0.14.6

Fix compatibility issues with newer networkx and pandas versions
This commit is contained in:
J. Fernando Sánchez
2020-03-11 16:17:14 +01:00
parent 6690b6ee5f
commit c8b8149a17
8 changed files with 27 additions and 19 deletions

View File

@@ -186,7 +186,7 @@ class TestMain(TestCase):
with utils.timer('serializing'):
serial = s.to_yaml()
with utils.timer('recovering'):
recovered = yaml.load(serial)
recovered = yaml.load(serial, Loader=yaml.SafeLoader)
with utils.timer('deleting'):
del recovered['topology']
assert config == recovered
@@ -240,7 +240,7 @@ class TestMain(TestCase):
env[0, 0, 'testvalue'] = 'start'
env[0, 10, 'testvalue'] = 'finish'
nG = env.history_to_graph()
values = nG.node[0]['attr_testvalue']
values = nG.nodes[0]['attr_testvalue']
assert ('start', 0, 10) in values
assert ('finish', 10, None) in values