asteca / ASteCA

Code for the ASteCA package.
http://asteca.github.io/
MIT License
18 stars 6 forks source link

DA 'read' mode is extremely slow for large clusters #520

Closed Gabriel-p closed 4 months ago

Gabriel-p commented 3 years ago

This block is the culprit

    for star in cl_region:
        if star[0] in id_list:
            # Index of star in file.
            i = id_list.index(star[0])
            # Assign the probability stored in file for this star.
            memb_probs_cl_region.append(memb_probs[i])
        else:
            # Stars not present in the list are assigned a fixed value.
            memb_probs_cl_region.append(0.5)
            N_not += 1