Commit 3a046527 authored by Vivien Raymond's avatar Vivien Raymond

Merge branch 'roq_python3' into 'master' minor python 3 fix for roq runs.

See merge request !519
parents 78be367d 51b30949
Pipeline #35454 passed with stages
in 27 minutes and 16 seconds
......@@ -608,9 +608,10 @@ def get_roq_component_mass_priors(path, roq_paths, roq_params, key, gid=None,sim
return m1_priors, m2_priors, trigger_mchirp
def get_roq_mass_freq_scale_factor(mc_priors, trigger_mchirp, force_flow=None):
mc_priors_keys_int = map(lambda k : int(k[:-1]), mc_priors.keys())
roq_min = mc_priors.keys()[np.argmin(mc_priors_keys_int)]
roq_max = mc_priors.keys()[np.argmax(mc_priors_keys_int)]
mc_priors_keys_list = list(mc_priors.keys())
mc_priors_keys_int = [int(seglen[:-1]) for seglen in mc_priors_keys_list]
roq_min = mc_priors_keys_list[np.argmin(mc_priors_keys_int)]
roq_max = mc_priors_keys_list[np.argmax(mc_priors_keys_int)]
mc_max = mc_priors[roq_min][1]
mc_min = mc_priors[roq_max][0]
scale_factor = 1.
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment