From 08a403cd0d5f8ffd5cedad884ed3286812163e28 Mon Sep 17 00:00:00 2001 From: Francesco Pannarale Date: Wed, 27 Nov 2024 01:01:12 -0800 Subject: [PATCH] Small optimization: awqvoid calculating eta and not using it --- bin/pygrb/pycbc_pygrb_plot_injs_results | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/pygrb/pycbc_pygrb_plot_injs_results b/bin/pygrb/pycbc_pygrb_plot_injs_results index 6419f186267..8ffd0c71015 100644 --- a/bin/pygrb/pycbc_pygrb_plot_injs_results +++ b/bin/pygrb/pycbc_pygrb_plot_injs_results @@ -28,7 +28,7 @@ import matplotlib.pyplot as plt import matplotlib import numpy as np -import pycbc.pnutils +import pycbc.conversions import pycbc.results import pycbc.version from pycbc import init_logging @@ -95,7 +95,7 @@ def complete_mass_data(injs, key, tag): if key == 'mtotal': data = injs[tag+'/mass1'][:] + injs[tag+'/mass2'][:] elif key == 'mchirp': - data, _ = pycbc.pnutils.mass1_mass2_to_mchirp_eta( + data = conversions.mchirp_from_mass1_mass2( injs[tag+'/mass1'], injs[tag+'/mass2']) else: