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

Improved docs

Fixed several bugs
Added convenience methods in soil.analysis
This commit is contained in:
J. Fernando Sánchez
2017-10-18 20:28:42 +02:00
parent 78364d89d5
commit a7c51742f6
69 changed files with 30969 additions and 3300 deletions

View File

@@ -60,7 +60,7 @@ class TestMain(TestCase):
'network_params': {
'path': join(ROOT, 'test.gexf')
},
'agent_type': 'NetworkAgent',
'agent_type': 'BaseAgent',
'environment_params': {
}
}
@@ -119,7 +119,7 @@ class TestMain(TestCase):
def test_custom_agent(self):
"""Allow for search of neighbors with a certain state_id"""
class CustomAgent(agents.NetworkAgent):
class CustomAgent(agents.BaseAgent):
def step(self):
self.state['neighbors'] = self.count_agents(state_id=0,
limit_neighbors=True)
@@ -208,7 +208,7 @@ class TestMain(TestCase):
res = list(env.history_to_tuples())
assert len(res) == len(env.environment_params)
assert ('env', 0, 'test', 'test_value') in res
assert ('env', 0, 'test', 'test_value', 'str') in res
env['test'] = 'second_value'
env._save_state(now=1)