Go to the source code of this file.
|
| | makeRunListDB.parser |
| |
| | makeRunListDB.type |
| |
| | makeRunListDB.str |
| |
| | makeRunListDB.help |
| |
| | makeRunListDB.required |
| |
| | makeRunListDB.nargs |
| |
| | makeRunListDB.int |
| |
| | makeRunListDB.default |
| |
| | makeRunListDB.float |
| |
| | makeRunListDB.args = parser.parse_args() |
| |
| | makeRunListDB.client = pymongo.MongoClient('sndrundb.cern.ch', username=args.username, password=args.password, authSource='sndrundb', authMechanism='SCRAM-SHA-1') |
| |
| | makeRunListDB.db = client.sndrundb |
| |
| list | makeRunListDB.pipeline = [] |
| |
| dict | makeRunListDB.run_length_expr = {"$dateDiff": {"startDate": "$start", "endDate": "$stop", "unit": "minute"}} |
| |
| dict | makeRunListDB.projection |
| |
| | makeRunListDB.result = list(db["EcsData"].aggregate(pipeline)) |
| |
| list | makeRunListDB.include_pipeline = [] |
| |
| | makeRunListDB.include_result = list(db["EcsData"].aggregate(include_pipeline)) |
| |
| | makeRunListDB.key |
| |
| | makeRunListDB.now = datetime.now() |
| |
| | makeRunListDB.root = ET.Element("runlist") |
| |
| | makeRunListDB.meta_data = ET.SubElement(root, "meta") |
| |
| | makeRunListDB.text |
| |
| | makeRunListDB.selection = ET.SubElement(meta_data, "selection") |
| |
| | makeRunListDB.runs = ET.SubElement(root, "runs") |
| |
| int | makeRunListDB.n_runs = 0 |
| |
| | makeRunListDB.totals = defaultdict(int) |
| |
| | makeRunListDB.this_run = ET.SubElement(runs, "run") |
| |
| | makeRunListDB.data = run[field_name] |
| |
| | makeRunListDB.stats = ET.SubElement(meta_data, "statistics") |
| |
| | makeRunListDB.tree = ET.ElementTree(root) |
| |
| | makeRunListDB.space |
| |
| | makeRunListDB.encoding |
| |
| | makeRunListDB.xml_declaration |
| |