Commit 9e0cdca6 authored by Daniel Williams's avatar Daniel Williams
Browse files

Fixed a problem from removal of pylal.

parent 06e3a51b
Loading
Loading
Loading
Loading
+7 −7
Original line number Diff line number Diff line
@@ -6,7 +6,6 @@ from minke.antenna import response

from lal import TimeDelayFromEarthCenter as XLALTimeDelayFromEarthCenter
from pylal.xlal.datatypes.ligotimegps import LIGOTimeGPS
#from pylal import inject 
from glue.ligolw.utils import process
import glue

@@ -255,10 +254,11 @@ class MDCSet():
            The LAL object describing the detector
        """
        # get detector
        if det not in lal.cached_detector_by_prefix.keys(): 
              raise ValueError, "%s is not a cached detector.  "\
                    "Cached detectors are: %s" % (det, inject.cached_detector.keys()) 
        return lal.cached_detector_by_prefix[det]
        return lalsimulation.DetectorPrefixToLALDetector(det)
        #if det not in lal.cached_detector_by_prefix.keys(): 
        #      raise ValueError, "%s is not a cached detector.  "\
        #            "Cached detectors are: %s" % (det, inject.cached_detector.keys()) 
        #return lal.cached_detector_by_prefix[det]

    def _timeDelayFromGeocenter(self, detector, ra, dec, gpstime):
        """