eigen1 = ap.pca.eigen[1] if len(
                ap.pca.eigen) > 1 is not None else 0