We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
np.trapz
np.trapezoid
1 parent 5fa0d1f commit d9783b7Copy full SHA for d9783b7
colorsynth/_colorsynth.py
@@ -70,7 +70,7 @@ def d65_standard_illuminant(
70
wavl = wavl << u.nm
71
72
ybar = color_matching_y(wavl)
73
- Y = np.trapz(x=wavl, y=ybar * spd)
+ Y = np.trapezoid(x=wavl, y=ybar * spd)
74
75
spd = spd / Y
76
@@ -357,7 +357,7 @@ def XYZcie1931_from_spd(
357
xyz = color_matching_xyz(wavelength, axis=0)
358
integrand = spd * xyz
359
360
- result = np.trapz(
+ result = np.trapezoid(
361
x=wavelength,
362
y=integrand,
363
axis=axis,
pyproject.toml
@@ -14,7 +14,7 @@ classifiers = [
14
"Programming Language :: Python :: 3",
15
]
16
dependencies = [
17
- "numpy",
+ "numpy>2",
18
"numba",
19
"matplotlib",
20
"astropy",
0 commit comments