a8b66530fffa337e4bb8f178449ea9009219930a mmaddren Fri Sep 30 12:44:51 2011 -0700 fixed the cv Validator diff --git python/lib/ucscgenomics/cv.py python/lib/ucscgenomics/cv.py index 342a40e..00352a7 100644 --- python/lib/ucscgenomics/cv.py +++ python/lib/ucscgenomics/cv.py @@ -24,32 +24,30 @@ def __init__(self, filePath=None, handler=None, protocolPath=None): """sets up exception handling method, and optionally reads from a file""" ra.RaFile.__init__(self) self.handler = handler if handler == None: self.handler = self.raiseException if filePath == None: filePath = os.path.expanduser('~/kent/src/hg/makeDb/trackDb/') + 'cv/alpha/cv.ra' self.protocolPath = protocolPath if protocolPath == None: self.protocolPath == os.path.expanduser('~/htdocsExtras/ENCODE/') - if not os.path.isdir(self.protocolPath): - self.protocolPath = None self.read(filePath) def raiseException(self, exception): """wrapper function for raising exception""" raise exception def readStanza(self, stanza): """overriden method from RaFile which makes specialized stanzas based on type""" e = ra.RaStanza() ek, ev = e.readStanza(stanza) type = e['type'] if type == 'Antibody': entry = AntibodyStanza()