Skip to content

Commit

Permalink
Importing shift from scipy.ndimage.interpolation is deprecated; repla…
Browse files Browse the repository at this point in the history
…ced with import from scipy.ndimage
  • Loading branch information
jameswilburlewis committed Aug 30, 2024
1 parent 3ec6435 commit c67764b
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

import math
import numpy as np
from scipy.ndimage.interpolation import shift
from scipy.ndimage import shift

# use nansum from bottleneck if it's installed, otherwise use the numpy one
try:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

import math
import numpy as np
from scipy.ndimage.interpolation import shift
from scipy.ndimage import shift

# use nansum from bottleneck if it's installed, otherwise use the numpy one
try:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

import math
import numpy as np
from scipy.ndimage.interpolation import shift
from scipy.ndimage import shift

from copy import deepcopy

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

import math
import numpy as np
from scipy.ndimage.interpolation import shift
from scipy.ndimage import shift
from copy import deepcopy

# use nansum from bottleneck if it's installed, otherwise use the numpy one
Expand Down
2 changes: 1 addition & 1 deletion pyspedas/projects/mms/fpi/mms_pad_fpi.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from copy import deepcopy
import numpy as np
from scipy.ndimage.interpolation import shift
from scipy.ndimage import shift
from scipy.constants import c as const_c
from pyspedas import time_double
from pyspedas.particles.spd_slice2d.slice2d_nearest import slice2d_nearest
Expand Down
2 changes: 1 addition & 1 deletion pyspedas/projects/mms/particles/mms_pgs_clean_data.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import numpy as np
from scipy.ndimage.interpolation import shift
from scipy.ndimage import shift


def mms_pgs_clean_data(data_in):
Expand Down
2 changes: 1 addition & 1 deletion pyspedas/projects/mms/particles/moka_mms_clean_data.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import logging
import numpy as np
from scipy.ndimage.interpolation import shift
from scipy.ndimage import shift
from pyspedas.projects.mms.particles.mms_convert_flux_units import mms_convert_flux_units


Expand Down

0 comments on commit c67764b

Please sign in to comment.