Skip to content

Commit

Permalink
remove try-catch from scipy import (#418)
Browse files Browse the repository at this point in the history
  • Loading branch information
bertiqwerty authored Jul 18, 2024
1 parent 4275a31 commit caaeda1
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions bofire/surrogates/diagnostics.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit caaeda1

Please sign in to comment.