@@ -483,7 +483,7 @@ def pvfcj(
483483 res += pv * fact
484484
485485 res = np .sin (tth_r ) * res / den / 4.0 / HoL / SoL
486- a = np .trapz (res , tth_list )
486+ a = np .trapezoid (res , tth_list )
487487 return res / a
488488
489489
@@ -580,8 +580,8 @@ def pvoight_pink_beam(
580580
581581 g = _gaussian_pink_beam (alpha_exp , beta_exp , fwhm_g , tth , tth_list )
582582 l_val = _lorentzian_pink_beam (alpha_exp , beta_exp , fwhm_l , tth , tth_list )
583- ag = np .trapz (g , tth_list )
584- al = np .trapz (l_val , tth_list )
583+ ag = np .trapezoid (g , tth_list )
584+ al = np .trapezoid (l_val , tth_list )
585585 if np .abs (ag ) < 1e-6 :
586586 ag = 1.0
587587 if np .abs (al ) < 1e-6 :
@@ -768,7 +768,7 @@ def calc_Iobs_pvfcj(
768768 y = Ic * pv
769769 y = y [mask ]
770770
771- Iobs [ii ] = np .trapz (yo * y / yc , tth_list_mask )
771+ Iobs [ii ] = np .trapezoid (yo * y / yc , tth_list_mask )
772772
773773 return Iobs
774774
@@ -820,7 +820,7 @@ def calc_Iobs_pvtch(
820820 y = Ic * pv
821821 y = y [mask ]
822822
823- Iobs [ii ] = np .trapz (yo * y / yc , tth_list_mask )
823+ Iobs [ii ] = np .trapezoid (yo * y / yc , tth_list_mask )
824824
825825 return Iobs
826826
@@ -887,7 +887,7 @@ def calc_Iobs_pvpink(
887887 y = Ic * pv
888888 y = y [mask ]
889889
890- Iobs [ii ] = np .trapz (yo * y / yc , tth_list_mask )
890+ Iobs [ii ] = np .trapezoid (yo * y / yc , tth_list_mask )
891891
892892 return Iobs
893893
0 commit comments