From 5dd0f680d43380185525f1e03260a39651a15db1 Mon Sep 17 00:00:00 2001 From: Behrang Shafei <50267830+bertiqwerty@users.noreply.github.com> Date: Mon, 15 Jul 2024 08:30:31 +0200 Subject: [PATCH] remove try-catch from scipy import --- bofire/surrogates/diagnostics.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/bofire/surrogates/diagnostics.py b/bofire/surrogates/diagnostics.py index 56fac8337..248469d16 100644 --- a/bofire/surrogates/diagnostics.py +++ b/bofire/surrogates/diagnostics.py @@ -4,13 +4,7 @@ import numpy as np import pandas as pd from pydantic import Field, field_validator, model_validator, validator - -# this try except accounts for the renaming from simps to simpson in scipy 1.14.0 -try: - from scipy.integrate import simps as simpson -except ImportError: - from scipy.integrate import simpson - +from scipy.integrate import simpson from scipy.stats import fisher_exact, kendalltau, norm, pearsonr, spearmanr from sklearn.metrics import ( accuracy_score,