예제 #1
0
def setHeader(a, headerdict):
    """
Attach an MRC header to the array.
	"""
    weakattr.set(a, "mrcheader", headerdict)
예제 #2
0
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)