Skip to content

Commit

Permalink
Add metal biases to build config
Browse files Browse the repository at this point in the history
  • Loading branch information
andreicuceu committed Feb 9, 2024
1 parent 1ccedfc commit 055c6de
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 7 deletions.
6 changes: 5 additions & 1 deletion vega/build_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ def __init__(self, options={}, overwrite=False):
self.options['use_metal_autos'] = options.get('use_metal_autos', True)
self.options['new_metals'] = options.get('new_metals', False)
self.options['metal-matrix'] = options.get('metal-matrix', {})
self.options['use_metal_bias_eta'] = options.get('use_metal_bias_eta', False)

metals = options.get('metals', None)
if metals is not None:
Expand Down Expand Up @@ -664,7 +665,10 @@ def add_bias_beta(new_params, tracer, bias_beta_config, bias, bias_eta, beta, gr
# Metals
if self.options['metals'] is not None:
for name in self.options['metals']:
new_params['bias_eta_{}'.format(name)] = get_par('bias_eta_{}'.format(name))
if self.options['use_metal_bias_eta']:
new_params['bias_eta_{}'.format(name)] = get_par('bias_eta_{}'.format(name))
else:
new_params['bias_{}'.format(name)] = get_par('bias_{}'.format(name))
new_params['beta_{}'.format(name)] = get_par('beta_{}'.format(name))
new_params['alpha_{}'.format(name)] = get_par('alpha_{}'.format(name))

Expand Down
10 changes: 5 additions & 5 deletions vega/parameters/default_values.txt
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ bias_eta_SiII(1193) -0.02 0.0 0.001
bias_eta_SiIII(1207) -0.02 0.0 0.001
bias_eta_SiII(1260) -0.02 0.0 0.001
bias_eta_CIV(eff) -0.02 0.0 0.001
bias_SiII(1190) -0.2 0.0 0.001
bias_SiII(1193) -0.2 0.0 0.001
bias_SiIII(1207) -0.2 0.0 0.001
bias_SiII(1260) -0.2 0.0 0.001
bias_CIV(eff) -0.2 0.0 0.001
bias_SiII(1190) -0.5 0.0 0.001
bias_SiII(1193) -0.5 0.0 0.001
bias_SiIII(1207) -0.5 0.0 0.001
bias_SiII(1260) -0.5 0.0 0.001
bias_CIV(eff) -0.5 0.0 0.001
desi_inst_sys_amp 0.0 1e-2 5e-5
7 changes: 6 additions & 1 deletion vega/templates/parameters.ini
Original file line number Diff line number Diff line change
Expand Up @@ -62,23 +62,28 @@ dnl_arinyo_kp = 19.47

# Metals
bias_eta_SiII(1190) = -0.0026
bias_SiII(1190) = -0.0052
beta_SiII(1190) = 0.5
alpha_SiII(1190) = 1.

bias_eta_SiII(1193) = -0.0012
bias_SiII(1193) = -0.0024
beta_SiII(1193) = 0.5
alpha_SiII(1193) = 1.

bias_eta_SiIII(1207) = -0.0037
bias_SiIII(1207) = -0.0074
beta_SiIII(1207) = 0.5
alpha_SiIII(1207) = 1.

bias_eta_SiII(1260) = -0.0023
bias_SiII(1260) = -0.0046
beta_SiII(1260) = 0.5
alpha_SiII(1260) = 1.

bias_eta_CIV(eff) = -0.005
beta_CIV(eff) = 0.27
bias_CIV(eff) = -0.01
beta_CIV(eff) = 0.5
alpha_CIV(eff) = 1.

# UV model
Expand Down

0 comments on commit 055c6de

Please sign in to comment.