Warnung -> PrintWarning

This commit is contained in:
lorenz
2021-02-17 13:40:45 +01:00
committed by GitHub
parent ef4622e015
commit ffe86c85e8

View File

@@ -921,7 +921,7 @@ class LanternGear(BaseGear):
import scipy.optimize
phi_min = scipy.optimize.root(find_phi_min, (phi_max + r_r / r_0 * 4) / 5).x[0] # , r_r / r_0, phi_max)
except ImportError:
App.Console.Warning("scipy not available. Can't compute numerical root. Leads to a wrong bolt-radius")
App.Console.PrintWarning("scipy not available. Can't compute numerical root. Leads to a wrong bolt-radius")
phi_min = r_r / r_0
# phi_min = 0 # r_r / r_0