Ejemplo n.º 1
0
def readData(parameters, variable):
	#Graph field
	if (gt.isGraph(parameters, variable)):
		return gt.readGraphData(parameters, variable)
	elif (mt.isMesh(parameters, variable)):
		return mt.readMeshData(parameters, variable)
	elif (pt.isMeshless(parameters, variable)):
		return pt.readMeshlessData(parameters, variable)
	elif (ce.isCEData(parameters, variable)):
		return ce.readCEData(parameters, variable)
	else:
		print 'ERROR: Input data origin not recognized/supported. Variable: ', variable, '.'
		raise Exception()
Ejemplo n.º 2
0
def readData(parameters, variable):
    '''
    Reads data from CE variable

    Input:
        parameters  configParser parameters
        variable    CE variable to read
    Returns:
                data
    '''
    #Graph field
    if (gt.isGraph(parameters, variable)):
        return gt.readGraphData(parameters, variable)
    elif (mt.isMesh(parameters, variable)):
        return mt.readMeshData(parameters, variable)
    elif (pt.isMeshless(parameters, variable)):
        return pt.readMeshlessData(parameters, variable)
    elif (ce.isCEData(parameters, variable)):
        return ce.readCEData(parameters, variable)
    else:
        print 'ERROR: Input data origin not recognized/supported. Variable: ', variable, '.'
        raise Exception()