示例#1
0
def setHeader(a, headerdict):
    """
Attach an MRC header to the array.
	"""
    weakattr.set(a, "mrcheader", headerdict)
def setCachedStats(a, stats):
	try:
		a.stats = stats
	except AttributeError:
		weakattr.set(a, 'stats', stats)
示例#3
0
def setHeader(a, headerdict):
	'''
Attach an MRC header to the array.
	'''
	weakattr.set(a, 'mrcheader', headerdict)
def setCachedStats(a, stats):
	try:
		a.stats = stats
	except AttributeError:
		weakattr.set(a, 'stats', stats)