Skip to content
Snippets Groups Projects
Unverified Commit 0fb45387 authored by Jari Pronold's avatar Jari Pronold Committed by GitHub
Browse files

Merge pull request #20 from INM-6/jarsi-patch-1

Update multiarea_helpers.py
parents 8fad7ad0 5fa21c2d
No related branches found
No related tags found
No related merge requests found
...@@ -229,7 +229,7 @@ def matrix_to_dict(m, area_list, structure, external=None): ...@@ -229,7 +229,7 @@ def matrix_to_dict(m, area_list, structure, external=None):
x = x.reshape((8, 8)) x = x.reshape((8, 8))
for i, pop in enumerate(population_list): for i, pop in enumerate(population_list):
for j, pop2 in enumerate(population_list): for j, pop2 in enumerate(population_list):
if x[i][j] < 1e-20: if np.isclose(0., x[i][j]):
x[i][j] = 0. x[i][j] = 0.
dic[area][pop][area2][pop2] = x[i][j] dic[area][pop][area2][pop2] = x[i][j]
if external is not None: if external is not None:
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment