Skip to content

Commit

Permalink
Fix deprecations
Browse files Browse the repository at this point in the history
  • Loading branch information
titodalcanton committed Feb 5, 2025
1 parent 63e8527 commit c8246cc
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions bin/pycbc_make_banksim
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def mkdir(dir_name):

def mc_min_max_from_sorted_file(fname):
from igwn_ligolw.utils import load_filename
from igwn_ligolw.table import Table
from igwn_ligolw.ligolw import Table
from pycbc.pnutils import mass1_mass2_to_mchirp_eta
from pycbc.io.ligolw import LIGOLWContentHandler

Expand Down Expand Up @@ -303,7 +303,8 @@ f = open("scripts/pycbc_banksim_collect_results", "w")
f.write("""#!/usr/bin/env python
from os.path import isfile
import numpy as np
from igwn_ligolw import utils, table
from igwn_ligolw import utils
from igwn_ligolw.ligolw import Table
import glob
from pycbc.io.ligolw import LIGOLWContentHandler
Expand All @@ -329,12 +330,12 @@ for row in res:
if row['bank'] not in btables:
indoc = utils.load_filename(eval(row['bank']).decode('utf-8'), False,
contenthandler=LIGOLWContentHandler)
btables[row['bank']] = table.Table.get_table(indoc, "sngl_inspiral")
btables[row['bank']] = Table.get_table(indoc, "sngl_inspiral")
if row['sim'] not in itables:
indoc = utils.load_filename(eval(row['sim']).decode('utf-8'), False,
contenthandler=LIGOLWContentHandler)
itables[row['sim']] = table.Table.get_table(indoc, "sim_inspiral")
itables[row['sim']] = Table.get_table(indoc, "sim_inspiral")
bt = btables[row['bank']][row['bank_i']]
it = itables[row['sim']][row['sim_i']]
Expand Down

0 comments on commit c8246cc

Please sign in to comment.