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).
The default numpy generator is subclassed to np.random.Generator so the current detector doesn't work. This adds another check for that.
This fixes a couple of bugs I have ran into:
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).np.random.Generator
so the current detector doesn't work. This adds another check for that.