Skip to content

Commit

Permalink
Remove conditional import on scipy version
Browse files Browse the repository at this point in the history
  • Loading branch information
ZedThree committed Oct 9, 2024
1 parent d95f6be commit 23ddb03
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions zoidberg/rzline.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,7 @@

import numpy as np
from numpy import append, argmin, cos, linspace, pi, sin, sqrt

try:
# New scipy changed the name
from scipy.integrate import cumulative_trapezoid as cumtrapz
except ImportError:
from scipy.integrate import cumtrapz

from scipy.integrate import cumulative_trapezoid as cumtrapz
from scipy.interpolate import interp1d, splev, splrep

try:
Expand Down

0 comments on commit 23ddb03

Please sign in to comment.