From a4875486395611264e101928738c282512701bd4 Mon Sep 17 00:00:00 2001 From: Joran Angevaare Date: Thu, 13 Aug 2020 13:50:55 +0200 Subject: [PATCH 1/2] Update rundb.py --- straxen/rundb.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/straxen/rundb.py b/straxen/rundb.py index 60697a4a9..01383cb8b 100644 --- a/straxen/rundb.py +++ b/straxen/rundb.py @@ -107,7 +107,7 @@ def __init__(self, self.backends = [ strax.S3Backend(**s3_kwargs), strax.FileSytemBackend(), - strax.rucio(), + strax.rucio('/dali/lgrandi/rucio/'), ] # Construct mongo query for runs with available data. From e05c6a668680b7bf0b35bedcbe2f91cd06ed0e81 Mon Sep 17 00:00:00 2001 From: Joran Angevaare Date: Fri, 14 Aug 2020 14:15:10 +0200 Subject: [PATCH 2/2] set_rucio_in_rundb_init --- straxen/rundb.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/straxen/rundb.py b/straxen/rundb.py index 01383cb8b..d6fd80fde 100644 --- a/straxen/rundb.py +++ b/straxen/rundb.py @@ -40,6 +40,7 @@ def __init__(self, local_only=False, new_data_path=None, reader_ini_name_is_mode=False, + rucio_path = '/dali/lgrandi/rucio/', *args, **kwargs): """ :param mongo_url: URL to Mongo runs database (including auth) @@ -66,6 +67,7 @@ def __init__(self, self.new_data_path = new_data_path self.reader_ini_name_is_mode = reader_ini_name_is_mode self.minimum_run_number = minimum_run_number + self.rucio_path = rucio_path if self.new_data_path is None: self.readonly = True self.runid_field = runid_field @@ -107,7 +109,7 @@ def __init__(self, self.backends = [ strax.S3Backend(**s3_kwargs), strax.FileSytemBackend(), - strax.rucio('/dali/lgrandi/rucio/'), + strax.rucio(rucio_path), ] # Construct mongo query for runs with available data.