Exemplo n.º 1
0
 def setUp(self):
     from GangaLHCb.Lib.Applications.AppsBaseUtils import available_apps
     self.apps = available_apps()
     # self.apps.remove('Gaudi')
     srcdir = os.path.dirname(inspect.getsourcefile(GaudiPython))
     self.optsfile = [File(os.path.join(srcdir,
                                        'options/GaudiPythonExample.py'))]
Exemplo n.º 2
0
 def setUp(self):
     from GangaLHCb.Lib.Applications.AppsBaseUtils import available_apps
     self.apps = available_apps()
     # self.apps.remove('Gaudi')
     srcdir = os.path.dirname(inspect.getsourcefile(GaudiPython))
     self.optsfile = [
         File(os.path.join(srcdir, 'options/GaudiPythonExample.py'))
     ]
Exemplo n.º 3
0
 def test_Francesc__getshell(self):
     # just check coverage...hard to check if the env is set properly
     from GangaLHCb.Lib.Applications.AppsBaseUtils import available_apps
     apps = available_apps()
     # apps.remove('Gaudi')
     for app in apps:
         instance = eval('%s()' % app)
         # if app == 'Gauss':
         #     instance._impl.platform = 'x86_64-slc5-gcc43-opt'
         instance._impl._getshell()
Exemplo n.º 4
0
from Ganga.GPIDev.Lib.Tasks.TaskApplication import task_map

# Must take care of "taskifying" all possible apps
#from GangaLHCb.Lib.Applications.AppsBase import *
#from GangaLHCb.Lib.Applications.AppsBaseUtils import available_apps
import os
from GangaLHCb.Lib.Applications.AppsBaseUtils import available_apps
f = open(os.path.join(
    os.path.dirname(__file__), '..', 'Applications', 'AppsBase.py'), 'r')
cls = f.read()
f.close()

# for app in available_apps():
# exec(cls.replace('AppName','%s'%app))

for app in available_apps():
    exec(cls.replace('AppName', '%s' % app))
    exec('%sTask = taskify(%s,"%sTask")' % (app, app, app))
    exec('task_map["%s"] = %sTask' % (app, app))


from GangaLHCb.Lib.Applications.GaudiPython import GaudiPython

GaudiPythonTask = taskify(GaudiPython, "GaudiPythonTask")
task_map["GaudiPython"] = GaudiPythonTask

from GangaLHCb.Lib.Applications.Bender import Bender

BenderTask = taskify(Bender, "BenderTask")
task_map["Bender"] = BenderTask
Exemplo n.º 5
0
from Ganga.GPIDev.Lib.Tasks.TaskApplication import task_map

# Must take care of "taskifying" all possible apps
#from GangaLHCb.Lib.Applications.AppsBase import *
#from GangaLHCb.Lib.Applications.AppsBaseUtils import available_apps
import os
from GangaLHCb.Lib.Applications.AppsBaseUtils import available_apps
f = open(
    os.path.join(os.path.dirname(__file__), '..', 'Applications',
                 'AppsBase.py'), 'r')
cls = f.read()
f.close()

# for app in available_apps():
# exec(cls.replace('AppName','%s'%app))

for app in available_apps():
    exec(cls.replace('AppName', '%s' % app))
    exec('%sTask = taskify(%s,"%sTask")' % (app, app, app))
    exec('task_map["%s"] = %sTask' % (app, app))

from GangaLHCb.Lib.Applications.GaudiPython import GaudiPython

GaudiPythonTask = taskify(GaudiPython, "GaudiPythonTask")
task_map["GaudiPython"] = GaudiPythonTask

from GangaLHCb.Lib.Applications.Bender import Bender

BenderTask = taskify(Bender, "BenderTask")
task_map["Bender"] = BenderTask