Skip to content

Commit

Permalink
Min run number as arg (#295)
Browse files Browse the repository at this point in the history
  • Loading branch information
cfuselli authored Dec 12, 2023
1 parent d91cdcb commit 9ca6598
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion amstrax/auto_processing/copy_live.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ def parse_args():
help='The location where the logs should be stored')
parser.add_argument('--ssh_host', type=str, default='stbc',
help='The host that you want to copy the data to')
parser.add_argument('--min_run_number', type=int, default=1555,
help='The minimum run number to start copying from')
parser.add_argument('--production', action='store_true', default=False,
help='If you want to run the script in production mode')
return parser.parse_args()
Expand Down Expand Up @@ -71,7 +73,7 @@ def get_rundocs(runsdb, args):
base_query = {
# end is at least 1 second ago
'end': {'$lt': datetime.datetime.now() - datetime.timedelta(seconds=1)},
'number': {'$gt': 2000},
'number': {'$gt': args.min_run_number},
'data': {
'$elemMatch': {
'type': 'live',
Expand Down

0 comments on commit 9ca6598

Please sign in to comment.