Skip to content

Commit

Permalink
Small optimization: awqvoid calculating eta and not using it
Browse files Browse the repository at this point in the history
  • Loading branch information
pannarale committed Nov 27, 2024
1 parent 31aa703 commit 08a403c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/pygrb/pycbc_pygrb_plot_injs_results
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 08a403c

Please sign in to comment.