From 662b7e315db9f05c10065ee1ae30b1820016729d Mon Sep 17 00:00:00 2001 From: mcditooss Date: Mon, 20 Nov 2023 15:18:01 +0900 Subject: [PATCH] removed exception --- qutip/solver/heom/bofin_baths.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/qutip/solver/heom/bofin_baths.py b/qutip/solver/heom/bofin_baths.py index ceba267232..7a0bd4c08f 100644 --- a/qutip/solver/heom/bofin_baths.py +++ b/qutip/solver/heom/bofin_baths.py @@ -1424,8 +1424,9 @@ def __init__(self, T, Q, alpha, wc, s, Nk=4, method="spectral", rmse=7e-5): self.Nk = Nk self.beta = 1 / T if _mpmath_available is False: - raise Exception("The mpmath module is needed for the description" - "of Ohmic baths") + print( + "The mpmath module is needed for the description" + " of Ohmic baths") if method == "correlation": self.fit = FitCorr(self.Q) t = np.linspace(0, 15 / self.wc, 1000)