diff --git a/objective.py b/objective.py index f0315a5..a7c08e3 100644 --- a/objective.py +++ b/objective.py @@ -63,6 +63,7 @@ def check_convergence(self, objective_list): return False, min(1.0, target / value) + with safe_import_context() as import_ctx: import numpy as np from numpy.linalg import norm