PCA lightcurve reconstruction wasn't passing conditional so I replaced conditional with if True: