Skip to content

Commit d9783b7

Browse files
authored
Change instances of np.trapz to np.trapezoid. (#8)
1 parent 5fa0d1f commit d9783b7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

colorsynth/_colorsynth.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def d65_standard_illuminant(
7070
wavl = wavl << u.nm
7171

7272
ybar = color_matching_y(wavl)
73-
Y = np.trapz(x=wavl, y=ybar * spd)
73+
Y = np.trapezoid(x=wavl, y=ybar * spd)
7474

7575
spd = spd / Y
7676

@@ -357,7 +357,7 @@ def XYZcie1931_from_spd(
357357
xyz = color_matching_xyz(wavelength, axis=0)
358358
integrand = spd * xyz
359359

360-
result = np.trapz(
360+
result = np.trapezoid(
361361
x=wavelength,
362362
y=integrand,
363363
axis=axis,

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ classifiers = [
1414
"Programming Language :: Python :: 3",
1515
]
1616
dependencies = [
17-
"numpy",
17+
"numpy>2",
1818
"numba",
1919
"matplotlib",
2020
"astropy",

0 commit comments

Comments
 (0)