diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 2b2e6210..30eb1b1c 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -13,8 +13,10 @@ jobs: strategy: matrix: platform: [ ubuntu-latest, macos-latest ] - python-version: ["3.10", "3.11", "3.12", "3.13"] - + python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"] + exclude: + - platform: macos-latest + python-version: "3.14" runs-on: ${{ matrix.platform }} steps: - uses: actions/checkout@v4 diff --git a/requirements-dev-gpu.txt b/requirements-dev-gpu.txt index 6d011e53..18d4b6c6 100644 --- a/requirements-dev-gpu.txt +++ b/requirements-dev-gpu.txt @@ -1,7 +1,7 @@ numpy>=2.0.0 scipy>=1.13.0 cupy-cuda12x -torch +torch<2.11.0 numba sympy astra-toolbox>=2.3.0 diff --git a/tutorials/deblurring.py b/tutorials/deblurring.py index a397805b..ebc6e71e 100755 --- a/tutorials/deblurring.py +++ b/tutorials/deblurring.py @@ -28,8 +28,8 @@ nh = [15, 25] hz = np.exp(-0.1 * np.linspace(-(nh[0] // 2), nh[0] // 2, nh[0]) ** 2) hx = np.exp(-0.03 * np.linspace(-(nh[1] // 2), nh[1] // 2, nh[1]) ** 2) -hz /= np.trapz(hz) # normalize the integral to 1 -hx /= np.trapz(hx) # normalize the integral to 1 +hz /= np.trapezoid(hz) # normalize the integral to 1 +hx /= np.trapezoid(hx) # normalize the integral to 1 h = hz[:, np.newaxis] * hx[np.newaxis, :] fig, ax = plt.subplots(1, 1, figsize=(5, 3))