Skip to content

solar metallicity value saved in sp object #172

@dnarayanan

Description

@dnarayanan

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('----------------------------------------------')

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions