Skip to content

Commit

Permalink
Merge branch 'topic/default/fix-get_simple_mpi-methods' into 'branch/…
Browse files Browse the repository at this point in the history
…default'

Fix get_simple_2d_mpi_method

See merge request fluiddyn/fluidfft!65
  • Loading branch information
paugier committed Jul 24, 2024
2 parents 217d050 + edf6fa0 commit a406ae9
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 9 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
with:
python-version: 3.x
- name: Build wheels
uses: pypa/cibuildwheel@v2.16.5
uses: pypa/cibuildwheel@v2.19.2
env:
CIBW_SKIP: pp* cp36-* cp37-* cp38-* *-musllinux*
CIBW_ARCHS: ${{ matrix.architecture }}
Expand All @@ -49,7 +49,7 @@ jobs:
with:
python-version: 3.x
- name: Build wheels
uses: pypa/cibuildwheel@v2.16.5
uses: pypa/cibuildwheel@v2.19.2
env:
CIBW_SKIP: pp* cp36-* cp37-* cp38-* *-musllinux*
CIBW_ARCHS: ${{ matrix.architecture }}
Expand Down Expand Up @@ -79,7 +79,7 @@ jobs:
python-version: 3.x

- name: Build wheels
uses: pypa/cibuildwheel@v2.16.5
uses: pypa/cibuildwheel@v2.19.2
env:
CIBW_SKIP: pp* cp36-* cp37-* cp38-* *-musllinux*
CIBW_ARCHS: aarch64
Expand Down Expand Up @@ -111,7 +111,7 @@ jobs:
name: sdist
- uses: actions/setup-python@v5
with:
python-version: 3.11
python-version: 3.12
- run: |
pip install pip -U
ls
Expand Down
4 changes: 2 additions & 2 deletions pdm.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ test = [
"pytest-cov",
"cython", # needed at run time for coverage
# needed to build the plugins
"flit_core",
"pip",
"flit_core",
"-e fluidfft-builder @ file:///${PROJECT_ROOT}/plugins/fluidfft-builder",
]
dev = ["ipython"]
Expand All @@ -89,6 +89,7 @@ doc = [
"pandas",
"pyfftw",
# needed to create the dummy modules
"flit_core",
"-e fluidfft-builder @ file:///${PROJECT_ROOT}/plugins/fluidfft-builder",
]
lint = ["black", "pylint"]
Expand Down
2 changes: 1 addition & 1 deletion src/fluidfft/fft2d/operators.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def get_simple_2d_mpi_method():
method = "fft2d.mpi_with_fftwmpi2d"
try:
import_fft_class(method)
except ImportError:
except (ImportError, ValueError):
method = "fft2d.mpi_with_fftw1d"
return method

Expand Down
2 changes: 1 addition & 1 deletion src/fluidfft/fft3d/operators.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def get_simple_3d_mpi_method():
method = "fft3d.mpi_with_fftwmpi3d"
try:
import_fft_class(method)
except ImportError:
except (ImportError, ValueError):
method = "fft3d.mpi_with_fftw1d"
return method

Expand Down

0 comments on commit a406ae9

Please sign in to comment.