Commit 51b30949 authored by Soichiro Morisaki's avatar Soichiro Morisaki
Browse files minor python 3 fix for roq runs.

parent 958198e1
......@@ -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.
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment