Skip to content

Commit

Permalink
Update config builder
Browse files Browse the repository at this point in the history
  • Loading branch information
andreicuceu committed Nov 14, 2024
1 parent f34f383 commit 7bfdd74
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion vega/build_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ def __init__(self, options={}, overwrite=False):
self.options['test'] = options.get('test', False)
self.options['use_metal_autos'] = options.get('use_metal_autos', True)
self.options['new_metals'] = options.get('new_metals', False)
self.options['rp_only_metal_mats'] = options.get('rp_only_metal_mats', False)
self.options['metal-matrix'] = options.get('metal-matrix', {})
self.options['use_metal_bias_eta'] = options.get('use_metal_bias_eta', False)

Expand Down Expand Up @@ -275,6 +276,7 @@ def _build_corr_config(self, name, corr_info, git_hash):
new_metals_flag = self.options.get('new_metals', False)
if new_metals_flag:
config['model']['new_metals'] = 'True'
config['model']['rp_only_metal_mats'] = str(self.options['rp_only_metal_mats'])

config['data']['weights-tracer1'] = corr_info.get('weights-tracer1')
config['data']['weights-tracer2'] = corr_info.get('weights-tracer2')
Expand All @@ -293,7 +295,7 @@ def _build_corr_config(self, name, corr_info, git_hash):
config['metal-matrix']['alpha_SiII(1190)'] = self.options['metal-matrix'].get(
'alpha_SiII(1190)', '1.')
config['metal-matrix']['alpha_CIV(eff)'] = self.options['metal-matrix'].get(
'alpha_CIV(eff)', '1.')
'alpha_CIV(eff)', '0.')

config['metal-matrix']['z_ref_objects'] = self.options['metal-matrix'].get(
'z_ref_objects', '2.25')
Expand Down

0 comments on commit 7bfdd74

Please sign in to comment.