Simple API class to just get run information from the RunDB.
Parameters:
apikey (str): RunDB API key (see
`this question <https://questions.belle2.org/question/11145/obtaining-an-access-token-for-rundb-api-2021-version/>`_
or `this Confluence page <https://confluence.desy.de/x/DZ8CCg>`_ how to get one)
username (str): DESY username
Definition at line 24 of file rundb.py.
def get_run_info |
( |
|
self, |
|
|
** |
search_params |
|
) |
| |
Return the run information from the run registry.
All arguments are forwarded to the run registry ``/run/`` method
documented at the following `link <https://rundb.belle2.org/rest/v1/swagger/>`_.
Please check there for up to date documentation, at the time of
this writing the supported arguments are:
* min_experiment (int)
* min_run (int)
* max_experiment (int)
* max_run (int)
* min_date (iso8601 date string, e.g. 2020-05-06)
* max_date (iso8601 date string, e.g. 2020-05-06)
* all_detectors_running (bool)
* expand (bool): If true return full run objects, not just a summary
links to the run objects
If ``expand=False`` you can request the full objects for each run by calling
`get_details` with the returned run summary object as argument.
``expand=False`` is much faster if no further details are needed but
getting the details in a separate step for many many runs will be slow
so depending on how many runs are selected one or the other may be
faster.
Definition at line 75 of file rundb.py.