Skip to content

Commit

Permalink
Fix for earlier scipy versions
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelClerx committed Jul 8, 2024
1 parent bb1b115 commit f5f1a37
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion pints/tests/test_mcmc_relativistic.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,19 @@
#
import unittest
import numpy as np
from scipy.integrate import cumulative_trapezoid, quad
from scipy.integrate import quad
from scipy.interpolate import interp1d
import pints
import pints.toy

from shared import StreamCapture

# For compatibility with scipy<1.12, released 2024-01-20
try:
from scipy.integrate import cumulative_trapezoid
except ImportError: # pragma: no cover
from scipy.integrate import cumtrapz as cumulative_trapezoid


class TestRelativisticMCMC(unittest.TestCase):
"""
Expand Down

0 comments on commit f5f1a37

Please sign in to comment.