This MR fixes #15 (closed) by updating uses of numpy.trapz to use numpy.trapezoid if it's available.
numpy.trapz
numpy.trapezoid