Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bugs in latest Python #18

Merged
merged 2 commits into from
Mar 28, 2024

Conversation

MilesCranmer
Copy link
Contributor

@MilesCranmer MilesCranmer commented Mar 3, 2024

This fixes a couple of bugs I have ran into:

  1. Using type(phot_system) == str => isinstance(phot_system, str). For me it was for some reason the current check didn't work, and "HSC" was not detected as a string, and ending up passing "H" to the isochrone grid (i.e., the first element of that list).
  2. The default numpy generator is subclassed to np.random.Generator so the current detector doesn't work. This adds another check for that.

@shanyDanieli shanyDanieli self-assigned this Mar 5, 2024
@MilesCranmer
Copy link
Contributor Author

MilesCranmer commented Mar 11, 2024

Friendly ping

@johnnygreco johnnygreco merged commit c69a908 into ArtificialStellarPopulations:main Mar 28, 2024
0 of 12 checks passed
@johnnygreco
Copy link
Member

Thanks @MilesCranmer!

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.

3 participants