Skip to content

Commit

Permalink
now in fc it looks like it is As?
Browse files Browse the repository at this point in the history
  • Loading branch information
Javier Sanchez authored and Javier Sanchez committed Dec 4, 2024
1 parent 44423dc commit 3945568
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion augur/analyze.py
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ def compute_new_theory_vector(self, _sys_pars, _pars):
extra_dict['amplitude_parameter'] = 'sigma8'
dict_all.pop('A_s')
else:
extra_dict['amplitude_parameter'] = 'A_s'
extra_dict['amplitude_parameter'] = 'As'
dict_all.pop('sigma8')

extra_dict['mass_split'] = dict_all['mass_split']
Expand All @@ -377,11 +377,15 @@ def compute_new_theory_vector(self, _sys_pars, _pars):
extra_dict['camb_extra_params'].pop('kmin')
dict_all.pop('extra_parameters')
keys = list(dict_all.keys())

# Remove None values
for key in keys:
if (dict_all[key] is None) or (dict_all[key] == 'None'):
dict_all.pop(key)
if self.cf is None:
print(extra_dict)
for key in extra_dict.keys():
print(extra_dict[key], type(extra_dict[key]))
self.cf = CCLFactory(**extra_dict)
self.tools = firecrown.modeling_tools.ModelingTools(ccl_factory=self.cf)
self.tools.reset()
Expand Down

0 comments on commit 3945568

Please sign in to comment.