예제 #1
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)
예제 #2
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
예제 #3
0
 def __init__(self, file):
     TabDelimitedFile.__init__(self)
     self.file = file
     self.read(file)
예제 #4
0
 def __init__(self, path):
     TabDelimitedFile.__init__(self, entry_class=AuthorRecord)
     self.read(path)
     self.people = self.get_unique_people()
예제 #5
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)
예제 #7
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)
예제 #9
0
 def __init__(self, file):
     TabDelimitedFile.__init__(self)
     self.file = file
     self.read(file)
     self.accession_numMap = None
     print '--%d' % len(self)
예제 #10
0
파일: csv.py 프로젝트: ostwald/python-lib
	def __init__ (self, data=[], record_constructor=None):
		if record_constructor is None:
			record_constructor = self.record_constructor
		TabDelimitedFile.__init__(self, data, record_constructor)
예제 #11
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)
예제 #12
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()