Skip to content
Snippets Groups Projects
Commit d011d35f authored by James Alexander Clark PhD's avatar James Alexander Clark PhD
Browse files

Merge branch 'ligo.lw' into 'master'

glue.ligolw -> ligo.lw conversion

See merge request lscsoft/bayeswave!60
parents d71b0b66 382f5b70
No related branches found
No related tags found
No related merge requests found
...@@ -22,9 +22,9 @@ from __future__ import print_function ...@@ -22,9 +22,9 @@ from __future__ import print_function
import sys,os,subprocess import sys,os,subprocess
from glue import pipeline from glue import pipeline
from glue.ligolw import ligolw from ligo.lw import ligolw
from glue.ligolw import utils as ligolw_utils from ligo.lw import utils as ligolw_utils
from glue.ligolw import lsctables from ligo.lw import lsctables
#import lalinspiral, lalburst #import lalinspiral, lalburst
import itertools import itertools
......
...@@ -2,9 +2,9 @@ import numpy as np ...@@ -2,9 +2,9 @@ import numpy as np
import os import os
try: try:
import glue.ligolw.utils import ligo.lw.utils
import glue.ligolw.table import ligo.lw.table
import glue.ligolw.lsctables import ligo.lw.lsctables
except: except:
print("WARNING: glue modules not found. Will not be able to read XML tables") print("WARNING: glue modules not found. Will not be able to read XML tables")
...@@ -31,8 +31,8 @@ class Mdc: ...@@ -31,8 +31,8 @@ class Mdc:
# -- Read a CBC XML table # -- Read a CBC XML table
if fileExtension == '.xml': if fileExtension == '.xml':
print("READING CBC XML TABLE") print("READING CBC XML TABLE")
xmldoc = glue.ligolw.utils.load_filename(filename, verbose=False) xmldoc = ligo.lw.utils.load_filename(filename, verbose=False)
injs = glue.ligolw.table.get_table(xmldoc,glue.ligolw.lsctables.SimInspiralTable.tableName) injs = ligo.lw.table.get_table(xmldoc,ligo.lw.lsctables.SimInspiralTable.tableName)
gpsList = np.zeros(len(injs)) gpsList = np.zeros(len(injs))
longList = np.zeros(len(injs)) longList = np.zeros(len(injs))
......
...@@ -18,10 +18,10 @@ import getopt ...@@ -18,10 +18,10 @@ import getopt
import math import math
from optparse import OptionParser from optparse import OptionParser
from glue.ligolw import ligolw from ligo.lw import ligolw
from glue.ligolw import lsctables from ligo.lw import lsctables
from glue.ligolw import table from ligo.lw import table
from glue.ligolw import utils from ligo.lw import utils
class LIGOLWContentHandler(ligolw.LIGOLWContentHandler): class LIGOLWContentHandler(ligolw.LIGOLWContentHandler):
pass pass
......
...@@ -8,7 +8,9 @@ RUN apt-get update && apt-get install --assume-yes \ ...@@ -8,7 +8,9 @@ RUN apt-get update && apt-get install --assume-yes \
build-essential \ build-essential \
pkg-config \ pkg-config \
python-pip \ python-pip \
git git \
python-ligo-lw
RUN python -m pip install --upgrade setuptools RUN python -m pip install --upgrade setuptools
# Copy and build BayesWave # Copy and build BayesWave
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment