Skip to content

Commit

Permalink
Merge pull request pyFFTW#213 from jakirkham/xtras_dask_interface
Browse files Browse the repository at this point in the history
Dask Interface Extras
  • Loading branch information
jakirkham authored Mar 13, 2018
2 parents 13b3bd8 + fcad133 commit 406be4a
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ before_install:

install:
- conda create -q -n test-environment python=$TRAVIS_PYTHON_VERSION nomkl numpy scipy cython setuptools
- conda install -q -n test-environment dask=0.14.2 || true
- conda install -q -n test-environment dask=0.15.0 || true
- source activate test-environment
- python setup.py -v build_ext --inplace

Expand Down
4 changes: 4 additions & 0 deletions pyfftw/interfaces/dask_fft.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@
from . import numpy_fft as _numpy_fft
from dask.array.fft import (
fft_wrap,
fftfreq,
rfftfreq,
fftshift,
ifftshift,
)

fft = fft_wrap(_numpy_fft.fft)
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cython
numpy>=1.6
scipy>=0.12.0
dask>=0.14.2
dask>=0.15.0
2 changes: 1 addition & 1 deletion test/test_pyfftw_dask_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def _dask_array_fft_has_norm_kwarg():
'hfft': 'c2r',
'ihfft': 'r2c'}

acquired_names = ('fft_wrap',)
acquired_names = ('fft_wrap', 'fftfreq', 'rfftfreq', 'fftshift', 'ifftshift')

@unittest.skipIf(
not interfaces.dask_fft,
Expand Down

0 comments on commit 406be4a

Please sign in to comment.