Skip to content

Commit 83efe85

Browse files
authored
Merge pull request #879 from atmos-cloud-sim-uj/slayoo-patch-19
SciPy deprecation fixes
2 parents 1d2e0e0 + a507d2d commit 83efe85

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

.github/workflows/tests+pypi.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
strategy:
2020
matrix:
2121
platform: [ubuntu-latest, macos-12, windows-latest]
22-
python-version: [3.7, 3.8, 3.9]
22+
python-version: ["3.7", "3.8", "3.9"]
2323
runs-on: ${{ matrix.platform }}
2424
steps:
2525
- uses: actions/checkout@v2

PySDM/exporters/netcdf_exporter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
[SciPy.io.netcdf_file](https://docs.scipy.org/doc/scipy/reference/tutorial/io.html#netcdf)
33
"""
44
import numpy as np
5-
from scipy.io.netcdf import netcdf_file
5+
from scipy.io import netcdf_file
66

77
from PySDM.products.impl.spectrum_moment_product import SpectrumMomentProduct
88

PySDM/exporters/netcdf_exporter_1d.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from copy import deepcopy
77

88
import numpy as np
9-
from scipy.io.netcdf import netcdf_file
9+
from scipy.io import netcdf_file
1010

1111

1212
class NetCDFExporter_1d:

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def get_long_description():
2626
"numpy" + ("==1.21.6" if "CI" in os.environ else ""),
2727
"Pint" + ("==0.17" if "CI" in os.environ else ""),
2828
"chempy" + ("==0.7.10" if "CI" in os.environ else ""),
29-
"scipy" + ("==1.6.3" if "CI" in os.environ else ""),
29+
"scipy" + ("==1.7.3" if "CI" in os.environ else ""),
3030
"pyevtk" + ("==1.2.0" if "CI" in os.environ else ""),
3131
],
3232
author="https://github.com/atmos-cloud-sim-uj/PySDM/graphs/contributors",

tests/smoke_tests/shipway_and_hill_2012/test_few_steps.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import pytest
44
from matplotlib import pyplot
55
from PySDM_examples.Shipway_and_Hill_2012 import Settings, Simulation
6-
from scipy.ndimage.filters import uniform_filter1d
6+
from scipy.ndimage import uniform_filter1d
77

88
from PySDM.physics import si
99

tests/unit_tests/backends/test_toms748.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import numba
55
import numpy as np
66
import pytest
7-
from scipy.optimize.zeros import toms748
7+
from scipy.optimize import toms748
88

99
from PySDM.backends.impl_numba.toms748 import toms748_solve
1010
from PySDM.formulae import Formulae

0 commit comments

Comments
 (0)