Skip to content

Commit

Permalink
Merge e285b72 into 9a0dc3a
Browse files Browse the repository at this point in the history
  • Loading branch information
jackiekazil committed Jul 14, 2018
2 parents 9a0dc3a + e285b72 commit 97ab6ae
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Expand Up @@ -7,7 +7,7 @@ cache:
python:
- "3.4"
- "3.5"
# - "3.6"
- "3.6"
# - "nightly"
install:
- pip install -r requirements.txt
Expand Down
5 changes: 1 addition & 4 deletions mesa/visualization/modules/ChartVisualization.py
Expand Up @@ -74,9 +74,6 @@ def render(self, model):

for s in self.series:
name = s["Label"]
try:
val = data_collector.model_vars[name][-1] # Latest value
except:
val = 0
val = data_collector.model_vars[name][-1] # Latest value
current_values.append(val)
return current_values
19 changes: 9 additions & 10 deletions requirements.txt
@@ -1,13 +1,12 @@
setuptools<34
setuptools
numpy
pandas==0.17.1
jupyter==1.0.0
pandas
jupyter

coverage==4.1
nose==1.3.7
tornado==4.5.3
flake8==2.5.2
coverage
nose
tornado
flake8
tqdm
networkx==2.1
click==6.7

networkx
click
1 change: 1 addition & 0 deletions tests/test_batchrunner.py
Expand Up @@ -162,5 +162,6 @@ def test_model_with_variable_and_fixed_kwargs(self):
self.assertEqual(model_vars['reported_fixed_param'].iloc[0],
self.fixed_params['fixed_name'])


if __name__ == '__main__':
unittest.main()
1 change: 1 addition & 0 deletions tests/test_datacollector.py
Expand Up @@ -129,5 +129,6 @@ def test_exports(self):
with self.assertRaises(Exception):
table_df = data_collector.get_table_dataframe("not a real table")


if __name__ == '__main__':
unittest.main()
1 change: 1 addition & 0 deletions tests/test_grid.py
Expand Up @@ -438,5 +438,6 @@ def test_neighbors(self):
neighborhood = self.grid.get_neighborhood((2, 4))
assert len(neighborhood) == 6


if __name__ == '__main__':
unittest.main()
1 change: 1 addition & 0 deletions tests/test_space.py
Expand Up @@ -412,5 +412,6 @@ def test_get_all_cell_contents(self):
self.agents[1],
self.agents[2]]


if __name__ == '__main__':
unittest.main()

0 comments on commit 97ab6ae

Please sign in to comment.