コード例 #1
0
ファイル: runxmds.py プロジェクト: fjarri/thesis
def getn(executable, n, **params):
	datasets = []
	for i in range(n):
		print "--- Getting", i, "-th set of results ---"
		res_file = resultn(executable, i, **params)
		if not os.path.exists(res_file):
			run(executable, res_file, **params)
		datasets.append(processData(res_file))
	return datasets
コード例 #2
0
ファイル: runxmds.py プロジェクト: fjarri/thesis
def get(executable, **params):
	res_file = result(executable, **params)
	if not os.path.exists(res_file):
		run(executable, res_file, **params)
	return processData(res_file)