Exposure time calculator for photometry in J H Ks
Added a check for convergence of leastsq
Using astropy instead of pyfits