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