Esempio n. 1
0
	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
Esempio n. 2
0
	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)
Esempio n. 3
0
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
Esempio n. 4
0
 def __init__(self, file):
     TabDelimitedFile.__init__(self)
     self.file = file
     self.read(file)
Esempio n. 5
0
 def __init__(self, path):
     TabDelimitedFile.__init__(self, entry_class=AuthorRecord)
     self.read(path)
     self.people = self.get_unique_people()
Esempio n. 6
0
	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)
Esempio n. 8
0
	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)
Esempio n. 10
0
 def __init__(self, file):
     TabDelimitedFile.__init__(self)
     self.file = file
     self.read(file)
     self.accession_numMap = None
     print '--%d' % len(self)
Esempio n. 11
0
	def __init__ (self, data=[], record_constructor=None):
		if record_constructor is None:
			record_constructor = self.record_constructor
		TabDelimitedFile.__init__(self, data, record_constructor)
Esempio n. 12
0
	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)
Esempio n. 13
0
 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()