Example #1
0
def fileName2xml(filename):
    """Here we create the XML string to be passed to the EDNA plugin from the input filename
    This can / should be modified by the final user
    
    @param filename: full path of the input file
    @type filename: python string representing the path
    @rtype: XML string
    @return: python string  
    """
    if not filename.endswith(".edf"):
        return
    xsdIn = XSDataInputID11()
    xsdFile = XSDataFile()
    xsdFile.setPath(XSDataString(filename))
    xsdIn.setDataFile([xsdFile])
    xsdIn.setParameterFile(xsdParam)
    xsdIn.setCorrectMask(xsdCorrectMask)
    if xsdOutputDir is not None:
        xsdIn.setOutputdir(xsdOutputDir)
    return xsdIn.marshal()
Example #2
0
    os.environ["EDNA_HOME"] = pyStrEdnaHomePath



sys.path.append(os.path.join(os.environ["EDNA_HOME"], "kernel", "src"))
sys.path.append(os.path.join(os.environ["EDNA_HOME"], "kernel", "tests", "src"))
from EDVerbose import EDVerbose
from EDParallelExecute import EDParallelExecute
from EDFactoryPluginStatic import EDFactoryPluginStatic
EDFactoryPluginStatic.loadModule("XSDataID11v1_0")
edPluginSPD = EDFactoryPluginStatic.loadPlugin("EDPluginSPDCakev1_5")

from XSDataID11v1_0 import XSDataInputID11, XSDataFile, XSDataString, XSDataBoolean
EDNAPluginName = "EDPluginControlID11v1_0"
xsdParam = XSDataFile()
xsdOutputDir = None
xsdCorrectMask = None

def fileName2xml(filename):
    """Here we create the XML string to be passed to the EDNA plugin from the input filename
    This can / should be modified by the final user
    
    @param filename: full path of the input file
    @type filename: python string representing the path
    @rtype: XML string
    @return: python string  
    """
    if not filename.endswith(".edf"):
        return
    xsdIn = XSDataInputID11()