File tree Expand file tree Collapse file tree 1 file changed +21
-21
lines changed
Expand file tree Collapse file tree 1 file changed +21
-21
lines changed Original file line number Diff line number Diff line change @@ -46,27 +46,28 @@ def ds_type_resolver(
4646 """
4747
4848 def find_scope (name ):
49- scopes = [
50- "mc23_13p6TeV" ,
51- "mc22_13p6TeV" ,
52- "mc21_13TeV" ,
53- "mc20_13TeV" ,
54- "mc16_13TeV" ,
55- "mc15_13TeV" ,
56- "data25_13p6TeV" ,
57- "data24_13p6TeV" ,
58- "data23_13p6TeV" ,
59- "data22_13p6TeV" ,
60- "data18_13TeV" ,
61- "data17_13TeV" ,
62- "data16_13TeV" ,
63- "data15_13TeV" ,
64- ]
49+
50+ scopes = [
51+ "mc23_13p6TeV" ,
52+ "mc22_13p6TeV" ,
53+ "mc21_13TeV" ,
54+ "mc20_13TeV" ,
55+ "mc16_13TeV" ,
56+ "mc15_13TeV" ,
57+ "data25_13p6TeV" ,
58+ "data24_13p6TeV" ,
59+ "data23_13p6TeV" ,
60+ "data22_13p6TeV" ,
61+ "data18_13TeV" ,
62+ "data17_13TeV" ,
63+ "data16_13TeV" ,
64+ "data15_13TeV" ,
65+ ]
6566 for scope in scopes :
6667 if name .startswith (scope ):
6768 return scope
6869 return None
69-
70+
7071 if isinstance (ds_name , list ):
7172 return dataset .FileList (ds_name )
7273
@@ -88,10 +89,9 @@ def find_scope(name):
8889 elif ds_name .count (":" ) == 1 and "/" not in ds_name :
8990 return dataset .Rucio (ds_name )
9091
91- elif "/" not in ds_name :
92- scope = find_scope (ds_name )
93- if scope is not None :
94- return dataset .Rucio (scope + ":" + ds_name )
92+ scope = find_scope (ds_name )
93+ if scope is not None and "/" not in ds_name :
94+ return dataset .Rucio (scope + ":" + ds_name )
9595
9696 elif ds_name .isdigit ():
9797 return dataset .CERNOpenData (int (ds_name ))
You can’t perform that action at this time.
0 commit comments