Is there an easiest way to view gamma percentage in 2d gamma alalysis?

I tried to add code in image.py (within core folder) in order to get gamma pass ratio and the number of points checked. I get results by using the image.gamma_2d().
Is there any easier way?