Skip to content

Commit deb8240

Browse files
authored
Merge pull request #742 from mrava87/ci-cupyfix
tmp: force torch<2.11 to solve issue in GPU CI
2 parents b065e2f + 5870ec4 commit deb8240

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

requirements-dev-gpu.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
numpy>=2.0.0
22
scipy>=1.13.0
33
cupy-cuda12x
4-
torch
4+
torch<2.11.0
55
numba
66
sympy
77
astra-toolbox>=2.3.0

tutorials/deblurring.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@
2828
nh = [15, 25]
2929
hz = np.exp(-0.1 * np.linspace(-(nh[0] // 2), nh[0] // 2, nh[0]) ** 2)
3030
hx = np.exp(-0.03 * np.linspace(-(nh[1] // 2), nh[1] // 2, nh[1]) ** 2)
31-
hz /= np.trapz(hz) # normalize the integral to 1
32-
hx /= np.trapz(hx) # normalize the integral to 1
31+
hz /= np.trapezoid(hz) # normalize the integral to 1
32+
hx /= np.trapezoid(hx) # normalize the integral to 1
3333
h = hz[:, np.newaxis] * hx[np.newaxis, :]
3434

3535
fig, ax = plt.subplots(1, 1, figsize=(5, 3))

0 commit comments

Comments
 (0)