Hi,
This thread might be of value. Just beware that the behaviour of integrate_1d might have changed in recent releases.
integrate_1d