Skip to content

Commit 33289af

Browse files
authored
deprecated np.trapz
1 parent 8cef9a5 commit 33289af

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

units-and-integration.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@
108108
"metadata": {},
109109
"outputs": [],
110110
"source": [
111-
"np.trapz(x=nu, y=bb5000K_nu).to(\"erg s-1 cm-2 sr-1\")"
111+
"np.trapezoid(x=nu, y=bb5000K_nu).to(\"erg s-1 cm-2 sr-1\")"
112112
]
113113
},
114114
{
@@ -145,7 +145,7 @@
145145
"metadata": {},
146146
"outputs": [],
147147
"source": [
148-
"np.trapz(x=lam, y=bb5000K_lam).to(\"erg s-1 cm-2 sr-1\")"
148+
"np.trapezoid(x=lam, y=bb5000K_lam).to(\"erg s-1 cm-2 sr-1\")"
149149
]
150150
},
151151
{

0 commit comments

Comments
 (0)