Commit 4e7034a1 authored by James Clark's avatar James Clark
Browse files

overhauled Virgo paths

parent f086cf45
Pipeline #83362 passed with stages
in 1 minute and 6 seconds
......@@ -51,15 +51,37 @@ def ligo_lab(scope, name, rse, rse_attrs, proto_attrs):
detector, dataset, gps_prefix, _ = match.groups()
dir_hash = "%s-%s-%s" % (detector, dataset, gps_prefix)
# Virgo Exceptions
if detector == 'V':
# Virgo
# In O1: all Virgo data went to /archive/frames/AdVirgo
# In O2:
# - V1Online went to /archive/frames/AdVirgo
# - raw V1O2Repro1A and V1O2Repro2A lived in /archive/frames/O2
# In O3: raw, V1Online live in /archive/frames/O3
if dataset == 'V1Online' and scope != 'O3':
detector_pretty = 'AdVirgo'
#if dataset == 'V1Online':
# dataset = 'HrecOnline'
return '%s/%s/%s/%s' % (scope, dataset, dir_hash, name)
else:
dataset_pretty = 'HrecOnline'
return '%s/%s/%s/%s' % (detector_pretty, dataset_pretty, dir_hash, name)
elif detector == 'V' and dataset == 'raw' and scope in ['O2', 'O3']:
detector_pretty = detector[0] + '1'
return "%s/%s/%s/%s/%s" % (scope, dataset, detector_pretty, dir_hash, name)
elif dataset == 'V1Online' and scope == 'O3':
return "%s/%s/%s/%s" % (scope, dataset, dir_hash, name)
elif detector == 'V' and dataset == 'raw':
detector_pretty = 'AdVirgo'
return "%s/%s/%s/%s" % (detector_pretty, dataset, dir_hash, name)
elif dataset in ['V1O2Repro1A', 'V1O2Repro2A']:
return '%s/%s/%s/%s' % (scope, dataset, dir_hash, name)
# LIGO
detector_pretty = detector[0] + '1'
match = _DATASET_RE.match(dataset)
if match:
_, kind, calib = match.groups()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment