Commit 121ae284 authored by Peter Fackeldey's avatar Peter Fackeldey
Browse files

[tasks/group] add check to ensure at lease one finite value in ratio array

parent b57e7f1d
......@@ -122,7 +122,7 @@ class GroupCoffeaProcesses(PGroupMixin, RecipeMixin, PoolMap, ConfigTask):
if not sys.startswith("ScaleWeight_"):
continue
ratio = tot[:, i] / nom
if 0 < np.nanmin(ratio) <= 0.55:
if np.any(np.isfinite(ratio)) and 0 < np.nanmin(ratio) <= 0.55:
w[i] *= 2
sys_mul2[d][sys] = (
np.nanmin(ratio),
......
Markdown is supported
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