Commit 187e876b authored by Pierre Paleo's avatar Pierre Paleo
Browse files

preproc.alignment: import formatting

parent e6e2cf40
import numpy as np
import math
import logging
import numpy as np
from numpy.polynomial.polynomial import Polynomial, polyval
from nabu.utils import previouspow2
from nabu.misc import fourier_filters
from ..utils import previouspow2
from ..misc import fourier_filters
try:
from scipy.ndimage.filters import median_filter
import scipy.fft
local_fftn = scipy.fft.rfftn
local_ifftn = scipy.fft.irfftn
__have_scipy__ = True
except ImportError:
from silx.math.medianfilter import medfilt2d as median_filter
from silx.math.medianfilter import medfilt1d as median_filter_1d
local_fftn = np.fft.fftn
local_ifftn = np.fft.ifftn
__have_scipy__ = False
try:
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
__have_matplotlib__ = True
except ImportError:
logging.getLogger(__name__).warning("Matplotlib not available. Plotting disabled")
__have_matplotlib__ = False
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment