From e6d62580df7374c24e3056db5142517b8475daba Mon Sep 17 00:00:00 2001 From: pbuslaev Date: Tue, 25 Jun 2024 17:26:41 +0100 Subject: [PATCH] Changed scipy simps import due to API change --- src/pmx/analysis.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/pmx/analysis.py b/src/pmx/analysis.py index 66c7484b..1ba8c2cd 100644 --- a/src/pmx/analysis.py +++ b/src/pmx/analysis.py @@ -3,7 +3,10 @@ import subprocess import os from os import path -from scipy.integrate import simps +try: + from scipy.integrate import simps +except ImportError: + from scipy.integrate import simpson as simps from matplotlib import pyplot as plt from copy import deepcopy from scipy.special import erf