Skip to content

Major Update: Optimized for Faster Cluster Simulation#120

Closed
wei-lingfeng wants to merge 22 commits intoastropy:devfrom
wei-lingfeng:dev
Closed

Major Update: Optimized for Faster Cluster Simulation#120
wei-lingfeng wants to merge 22 commits intoastropy:devfrom
wei-lingfeng:dev

Conversation

@wei-lingfeng
Copy link
Contributor

@wei-lingfeng wei-lingfeng commented May 15, 2025

  • Major update:
    • Used masked arrays instead of ragged arrays in spisea.imf.calc_multi to eliminate inefficient for loops and accelerate cluster simulation.
    • Optimized _make_companions_table_new accordingly
  • Minor updates:
    • Added support for the random generator instead of a global random seed
    • Added verbose control for IsochronePhot
    • Removed trailing whitespaces

Commit Add random generator support is where major optimization occurs by replacing companion masses from ragged arrays to masked arrays.

Copy link
Contributor Author

@wei-lingfeng wei-lingfeng left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Forgot to mention in the commit message: Commit Add random generator support is where major optimization occurs by replacing companion masses from ragged arrays to masked arrays.

@wei-lingfeng wei-lingfeng deleted the branch astropy:dev February 25, 2026 22:31
@wei-lingfeng wei-lingfeng deleted the dev branch February 25, 2026 22:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants