Skip to content

Commit

Permalink
update data loading options
Browse files Browse the repository at this point in the history
  • Loading branch information
kondratyevd committed Mar 4, 2024
1 parent 4ecb6d1 commit a03079a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions af_benchmark/data_access/loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def get_file_list(cls):
file_list = []
for dir in dirs:
file_list.extend(glob.glob(dir+"/**/*.root", recursive = True))
elif mode == 'dbs-dataset':
elif mode == 'dbs-datasets':
dbsdatasets = cls.config.get('data-access.datasets', [])
xrootdserver = cls.config.get('data-access.xrootdserver', 'eos.cms.rcac.purdue.edu:1094')
dbs = DbsApi('https://cmsweb.cern.ch/dbs/prod/global/DBSReader')
Expand All @@ -20,7 +20,7 @@ def get_file_list(cls):
for dataset in dbsdatasets
for file in dbs.listFiles(dataset=dataset)
]
elif mode == 'dbs-block':
elif mode == 'dbs-blocks':
dbsblocks = cls.config.get('data-access.blocks', [])
xrootdserver = cls.config.get('data-access.xrootdserver', 'eos.cms.rcac.purdue.edu:1094')
dbs = DbsApi('https://cmsweb.cern.ch/dbs/prod/global/DBSReader')
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
executor:
backend: sequential
data-access:
mode: dbs-block
mode: dbs-blocks
xrootdserver: eos.cms.rcac.purdue.edu:1094
# xrootdserver: cms-xcache.rcac.purdue.edu:1094
# xrootdserver: cmsxrootd.hep.wisc.edu:1094
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
executor:
backend: futures
data-access:
mode: dbs-dataset
mode: dbs-datasets
# xrootdserver: eos.cms.rcac.purdue.edu:1094
xrootdserver: cms-xcache.rcac.purdue.edu:1094
datasets:
Expand Down

0 comments on commit a03079a

Please sign in to comment.