-
Notifications
You must be signed in to change notification settings - Fork 42
Closed
Labels
Description
Hi,
[Feature request]
Would it be possible to save the value used for solar metallicity in the sp object? These are different for different isochrones, which makes code on our end kind of clunky like appended below :). If this were in the sp object it would be super convenient on our end for powderday.
thanks!
-desika
print(f'\n----------------------------------------------\nSetting solar metallicity value')
if 'mist' in isochrone:
print('isochrone = mist')
cfg.par.solar = 0.0142
print(f'solar metallicity = {cfg.par.solar}')
elif 'bsti' in isochrone:
print('isochrone = basti')
cfg.par.solar = 0.020
print(f'solar metallicity = {cfg.par.solar}')
elif 'gnva' in isochrone:
print('isochrone = geneva')
cfg.par.solar = 0.020
print(f'solar metallicity = {cfg.par.solar}')
elif 'prsc' in isochrone:
print('isochrone = parsec')
cfg.par.solar = 0.01524
print(f'solar metallicity = {cfg.par.solar}')
elif 'pdva' in isochrone:
print('isochrone = padova')
cfg.par.solar = 0.019
print(f'solar metallicity = {cfg.par.solar}')
elif 'bpss' in isochrone:
print('isochrone = bpass')
cfg.par.solar = 0.020
print(f'solar metallicity = {cfg.par.solar}')
print('----------------------------------------------')
Reactions are currently unavailable