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

Update multiarea_helpers.py

Fix scaling of negative values.
parent 8fad7ad0
No related branches found
No related tags found
1 merge request!20Update multiarea_helpers.py
......@@ -229,7 +229,7 @@ def matrix_to_dict(m, area_list, structure, external=None):
x = x.reshape((8, 8))
for i, pop 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.
dic[area][pop][area2][pop2] = x[i][j]
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