Skip to content

Commit a6cadbf

Browse files
authored
Forward compatibility port for new scipy. (#211)
1 parent ae666e9 commit a6cadbf

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pycorrfit/trace.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44
import numpy as np
55
import scipy.integrate as spintg
66

7+
# forward compatibility patch for scipy >= 1.10
8+
# aliasing simpson as simps
9+
if not hasattr(spintg, "simps"):
10+
spintg.simps = spintg.simpson
711

812
class Trace(object):
913
""" unifies trace handling

0 commit comments

Comments
 (0)