Exemplo n.º 1
0
    #	methodID=args[2];

    rows = args[1].split(',')
    cols = args[2].split(',')
    fname = args[3]

    ch = Chain(chain_file)

    Project = ch.project
    methodID = ch.runMethod

    d = ch.getMethodsDict()
    method = d[methodID]

    if len(args) >= 5:
        parseXparam(args[4], method)

    rows_iterators = []
    cols_iterators = []

    for k in rows:
        rows_iterators.append(method.iterators[k])

    for k in cols:
        cols_iterators.append(method.iterators[k])

#	for k in method.iterators.keys():
#		if k in rows:
#			rows_iterators.append(method.iterators[k]);
#		elif k in cols:
#			cols_iterators.append(method.iterators[k]);
Exemplo n.º 2
0
	project_name = chain.project;
	methodID = chain.runMethod;


	printOnly =  ('--printOnly','') in opts;
#	print 'done'

	root= os.getenv('MOLDB_PROJECTS') + '/' + project_name + '/Methods';

#	methodID = sys.argv[3] if len(sys.argv)>2 else prototype.runMethod;

	d=chain.getMethodsDict();
	prototype = d[methodID];

	if len(args)>1:
		parseXparam(args[1],prototype,chain)
		prototype.iterators = prototype.getIterators()

#	print 'Creating folders...'

	xparam = {'moldb_prototype':prototype,
		  'moldb_root':root,
		  'moldb_printOnly':printOnly, 
		  'moldb_projectName':project_name
		 };

	iterators = prototype.iterators;

	iterate_over_lists(iterators.keys(),iterators.values(), createFolders_callback, xparam)

	
Exemplo n.º 3
0
	opts,args=gnu_getopt(sys.argv[1:],'p:',['printMethod','noRefs','addRoot=','--project','noRoot']);
	
	if len(args)<1:
		print usage
		quit()

	ch = Chain(args[0]);
	methodID = ch.runMethod;
#	methodID = args[1];

	methodsDict = ch.getMethodsDict();
#	print ch
	method = methodsDict[methodID];

	if len(args)>1: 
		parseXparam(args[1],method,ch);



	if ('--printMethod','') in opts: 
		print method

	if ('--noRefs','') in opts:
		quit();


#	root='';		

#	for o in opts:
#		k,v=o
#		
Exemplo n.º 4
0
    output = project_name + '_' + chain_name + '_' + script_words[0] + '.sh'

    xparam_arg = False
    xparam_arg_val = None

    Npar = 1

    for o in opts:
        k, v = o
        if k == '-o': output = v
        if k == '-x' or k == '--xparam':
            #print 'XPARAM '+v;
            xparam_arg = True
            xparam_arg_val = v
            parseXparam(v, prototype, ch)
            prototype.iterators = prototype.getIterators()
        if k == '-p' or k == '--proc':
            Npar = int(v)

    if len(args) >= 3:
        xparam_arg = True
        xparam_arg_val = args[2]
        parseXparam(args[2], prototype, ch)
        prototype.iterators = prototype.getIterators()

    root = '$MOLDB_PROJECTS/' + project_name + '/Methods'

    xparam = {
        'moldb_prototype': prototype,
        'moldb_root': root
Exemplo n.º 5
0
	
	rows=args[1].split(',')
	cols=args[2].split(',')
	fname=args[3];

	ch=Chain(chain_file);

	Project = ch.project;
	methodID = ch.runMethod;

	d=ch.getMethodsDict();
	method = d[methodID];

	if len(args)>=5:
		parseXparam(args[4],method);


	rows_iterators=[];
	cols_iterators=[];

	for k in rows:
		rows_iterators.append(method.iterators[k]);

	for k in cols:
		cols_iterators.append(method.iterators[k]);

#	for k in method.iterators.keys():
#		if k in rows:
#			rows_iterators.append(method.iterators[k]);
#		elif k in cols:
Exemplo n.º 6
0
	output = project_name + '_' + chain_name + '_'+script_words[0] +'.sh'

	xparam_arg=False
	xparam_arg_val=None
	
	Npar = 1;

	for o in opts:
		k,v = o
		if k=='-o' : output = v;		
		if k=='-x' or k=='--xparam':
			#print 'XPARAM '+v;
			xparam_arg=True
			xparam_arg_val=v
			parseXparam(v,prototype,ch)
			prototype.iterators = prototype.getIterators()
		if k=='-p' or k=='--proc':
			Npar = int(v)

	if len(args)>=3:
		xparam_arg=True
		xparam_arg_val=args[2];
		parseXparam(args[2],prototype,ch)
		prototype.iterators = prototype.getIterators()


	root = '$MOLDB_PROJECTS/'+project_name+'/Methods';

	xparam={'moldb_prototype':prototype,'moldb_root':root };
	iterators = prototype.iterators;
Exemplo n.º 7
0
    #	methodID = args[2];
    project_name = chain.project
    methodID = chain.runMethod

    printOnly = ('--printOnly', '') in opts
    #	print 'done'

    root = os.getenv('MOLDB_PROJECTS') + '/' + project_name + '/Methods'

    #	methodID = sys.argv[3] if len(sys.argv)>2 else prototype.runMethod;

    d = chain.getMethodsDict()
    prototype = d[methodID]

    if len(args) > 1:
        parseXparam(args[1], prototype, chain)
        prototype.iterators = prototype.getIterators()

#	print 'Creating folders...'

    xparam = {
        'moldb_prototype': prototype,
        'moldb_root': root,
        'moldb_printOnly': printOnly,
        'moldb_projectName': project_name
    }

    iterators = prototype.iterators

    iterate_over_lists(iterators.keys(), iterators.values(),
                       createFolders_callback, xparam)