def __init__ (self, path): print 'DataTable: "%s"' % path TabDelimitedFile.__init__ (self, entry_class=DataRecord) self.read (path) self.beforeMap = {} for record in self: self.beforeMap[record.before] = record
def __init__ (self, path=None): self.path = path or default_data self.uniquePeids = [] TabDelimitedFile.__init__ (self, entry_class=iVantageRecord) print "max to read: ", self.max_to_read self.read(self.path) print "%d ivantage records read" % len(self)
def tester(): mappings = BPPBMappings() print 'table has %d entries' % len(mappings) from tabdelimited import TabDelimitedFile report = TabDelimitedFile() report.read( '/Users/ostwald/devel/python/python-lib/ncar_lib/repository/reporter/bppb-reporter-output.txt' ) for record in report: url = record['url'] mapping = mappings[url] if not mapping: print record['recId'], url
def __init__(self, file): TabDelimitedFile.__init__(self) self.file = file self.read(file)
def __init__(self, path): TabDelimitedFile.__init__(self, entry_class=AuthorRecord) self.read(path) self.people = self.get_unique_people()
def __init__ (self, path): self.source_reader = SourceXlsReader(self.source_data_path) TabDelimitedFile.__init__ (self, entry_class=WosRecord) self.read (path)
def __init__(self, path): TabDelimitedFile.__init__(self, entry_class=ResourceMapping) self.read(path)
def __init__ (self, path): TabDelimitedFile.__init__ (self, entry_class=RedirectMapping) self.read (path) self.uniquePaths = self.getUniquePaths() self.uniqueHosts = self.getUniqueHosts() self.errors = []
def __init__(self, path): TabDelimitedFile.__init__(self, entry_class=MetadataMapping) self.read(path)
def __init__(self, file): TabDelimitedFile.__init__(self) self.file = file self.read(file) self.accession_numMap = None print '--%d' % len(self)
def __init__ (self, data=[], record_constructor=None): if record_constructor is None: record_constructor = self.record_constructor TabDelimitedFile.__init__(self, data, record_constructor)
def __init__ (self, path=None): self.path = path or self.default_path TabDelimitedFile.__init__ (self, entry_class=AuthorRecord) self.read (self.path) self.people = UniquePeople(self.data)
def __init__(self, path=None): self.path = path or default_data print 'self.path: %s ' % self.path TabDelimitedFile.__init__(self, entry_class=IdMapRecord) self.read(self.path) self.lookup = self.makeUpidLookup()