You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: erna/scripts/fetch_fact_runs.py
+5-2
Original file line number
Diff line number
Diff line change
@@ -10,6 +10,7 @@
10
10
11
11
logger=logging.getLogger(__name__)
12
12
13
+
fromfact_conditionsimportcreate_condition_set
13
14
14
15
@click.command()
15
16
@click.argument('earliest_night')
@@ -18,7 +19,7 @@
18
19
@click.option('--source', help='Name of the source to analyze. e.g Crab', default='Crab')
19
20
@click.option('--max_delta_t', default=30, help='Maximum time difference (minutes) allowed between drs and data files.', type=click.INT)
20
21
@click.option('--parts', default=1, help='Number of parts to split the .json file into. This is useful for submitting this to a cluster later on', type=click.INT)
21
-
@click.option('--conditions', help='Name of the data conditions as given in datacheck_conditions.py e.g std', default='std')
22
+
@click.option('--conditions', '-c',help='Name of the data conditions as given in datacheck_conditions.py e.g @standard or "fParameter < 42 "', default=['@standard'], multiple=True)
22
23
@click.password_option(help='password to read from the always awesome RunDB')
@click.option('--port', help='The port through which to communicate with the JobMonitor', default=12856, type=int)
77
78
@click.option('--source', help='Name of the source to analyze. e.g Crab', default='Crab')
78
-
@click.option('--conditions', help='Name of the data conditions as given in datacheck_conditions.py e.g standard', default='standard')
79
+
@click.option('--conditions', '-c',help='Name of the data conditions as given in datacheck_conditions.py e.g @standard or "fParameter < 42 "', default=['@standard'], multiple=True)
79
80
@click.option('--max_delta_t', default=30, help='Maximum time difference (minutes) allowed between drs and data files.', type=click.INT)
80
81
@click.option('--local', default=False,is_flag=True, help='Flag indicating whether jobs should be executed localy .')
@click.option('--port', help='The port through which to communicate with the JobMonitor', default=12856, type=int)
68
68
@click.option('--source', help='Name of the source to analyze. e.g Crab', default='Crab')
69
-
@click.option('--conditions', help='Name of the data conditions as given in datacheck_conditions.py e.g std', default='data')
69
+
@click.option('--conditions', '-c',help='Name of the data conditions as given in datacheck_conditions.py e.g @standard or "fParameter < 42 "', default=['@standard'], multiple=True)
70
70
@click.option('--max_delta_t', default=30, help='Maximum time difference (minutes) allowed between drs and data files.', type=click.INT)
71
71
@click.option('--local', default=False,is_flag=True, help='Flag indicating whether jobs should be executed localy .')
72
72
@click.option('--yes', help="Assume 'yes'if your asked to continue processing and start jobs", default=False, is_flag=True)
0 commit comments