From 56d483a9abd05d68c85f8ec364eb4e823b427668 Mon Sep 17 00:00:00 2001 From: "BenTaylor-TfN (Sneezy)" Date: Thu, 14 Mar 2024 15:36:37 +0000 Subject: [PATCH] Fix linting error --- src/caf/distribute/iterative_proportional_fitting.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/caf/distribute/iterative_proportional_fitting.py b/src/caf/distribute/iterative_proportional_fitting.py index 6f76064..1ad4013 100644 --- a/src/caf/distribute/iterative_proportional_fitting.py +++ b/src/caf/distribute/iterative_proportional_fitting.py @@ -371,8 +371,7 @@ def default_convergence( max_conv = 0 for target, ach in zip(targets, achieved): conv = np.max(abs((ach / target) - 1)) - if conv > max_conv: - max_conv = conv + max_conv = max(max_conv, conv) return max_conv