powderday icon indicating copy to clipboard operation
powderday copied to clipboard

have code error out if metallicities exceed tabulated fsps metallcities

Open dnarayanan opened this issue 3 years ago • 1 comments

only relevant for idealized simulations, quantities (e.g.):

disk_stars_metals = 11 # in fsps metallicity units

or alternatively, have user put in metallicity in units of solar, and have the code figure out which tabulated value this corresponds to, to minimize issues like this.

dnarayanan avatar Mar 24 '21 16:03 dnarayanan

at least one point that throws an error is lines like:

 else:
        dmet = [fsps_metals[cfg.par.disk_stars_metals]]*len(diskmasses)
        ```
        
        in `analytics.py` 

dnarayanan avatar Mar 24 '21 16:03 dnarayanan