compare again numpy.ptp() every where. Test with no axis parameter passed too.