Exemplo n.º 1
0
 def list_runs(self, **kwargs):
     """
     Controller to get runs
     """
     url = conddb_url("getLumi")
     run = kwargs.get("run")
     params = {"Runs": run, "lumiType": "delivered"}
     data = get_data(url, params)
     plist = [Run(d) for d in data]
     return plist
Exemplo n.º 2
0
 def list_runs(self, **kwargs):
     """
     Controller to get runs
     """
     url = conddb_url('getLumi')
     run = kwargs.get('run')
     params = {'Runs': run, 'lumiType': 'delivered'}
     data = get_data(url, params)
     plist = [Run(d) for d in data]
     return plist
Exemplo n.º 3
0
Arquivo: cmsfs.py Projeto: dmwm/cmssh
 def list_runs(self, **kwargs):
     """
     Controller to get runs
     """
     url = conddb_url('getLumi')
     run = kwargs.get('run')
     params = {'Runs':run, 'lumiType':'delivered'}
     data = get_data(url, params)
     plist = [Run(d) for d in data]
     return plist
Exemplo n.º 4
0
def run_info(run, verbose=None):
    """Return run info"""
    url = conddb_url("getLumi")
    params = {"Runs": run, "lumiType": "delivered"}
    data = get_data(url, params)
    runinfo = [r for r in runsum(run)]
    runlumi = [r for r in data]
    plist = []
    for run in runinfo:
        for rec in runlumi:
            if run["run"] == rec["Run"]:
                run.update(rec)
        plist.append(Run(run))
    return plist
Exemplo n.º 5
0
def run_info(run, verbose=None):
    """Return run info"""
    url = conddb_url('getLumi')
    params = {'Runs': run, 'lumiType': 'delivered'}
    data = get_data(url, params)
    runinfo = [r for r in runsum(run)]
    runlumi = [r for r in data]
    plist = []
    for run in runinfo:
        for rec in runlumi:
            if run['run'] == rec['Run']:
                run.update(rec)
        plist.append(Run(run))
    return plist
Exemplo n.º 6
0
Arquivo: cmsfs.py Projeto: dmwm/cmssh
def run_info(run, verbose=None):
    """Return run info"""
    url = conddb_url('getLumi')
    params = {'Runs':run, 'lumiType':'delivered'}
    data = get_data(url, params)
    runinfo = [r for r in runsum(run)]
    runlumi = [r for r in data]
    plist = []
    for run in runinfo:
        for rec in runlumi:
            if  run['run'] == rec['Run']:
                run.update(rec)
        plist.append(Run(run))
    return plist