This change to lightcurve.py can be removed now, as it was just changed in #891 to fix another bug.