Skip to content

Commit

Permalink
Core: Remove LIGO algorithm (migrated to policy package); rucio#7187
Browse files Browse the repository at this point in the history
Verified with LIGO that this algorithm is being used in their policy package,
and is safe to be removed from the main Rucio code.
  • Loading branch information
rdimaio committed Jan 10, 2025
1 parent 44a26d2 commit dac9bd8
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions lib/rucio/rse/translation.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,27 +194,6 @@ def __identity(scope, name, rse, rse_attrs, protocol_attrs):
scope = scope.replace('.', '/')
return '%s/%s' % (scope, name)

@staticmethod
def __ligo(scope, name, rse, rse_attrs, protocol_attrs):
"""
Given a LFN, convert it directly to a path using the Caltech schema
e.g.,: ER8:H-H1_HOFT_C02-1126256640-4096 ->
ER8/hoft_C02/H1/H-H1_HOFT_C02-11262/H-H1_HOFT_C02-1126256640-4096
:param scope: Scope of the LFN (observing run: ER8, O2, postO1, ...)
:param name: File name of the LFN (E.g., H-H1_HOFT_C02-1126256640-4096.gwf)
:param rse: RSE for PFN (ignored)
:param rse_attrs: RSE attributes for PFN (ignored)
:param protocol_attrs: RSE protocol attributes for PFN (ignored)
:returns: Path for use in the PFN generation.
"""
del rse
del rse_attrs
del protocol_attrs
from ligo_rucio import lfn2pfn as ligo_lfn2pfn # pylint: disable=import-error
return ligo_lfn2pfn.ligo_lab(scope, name, None, None, None)

@staticmethod
def __xenon(scope, name, rse, rse_attrs, protocol_attrs):
"""
Expand All @@ -240,7 +219,6 @@ def _module_init_(cls):
"""
cls.register(cls.__hash, "hash")
cls.register(cls.__identity, "identity")
cls.register(cls.__ligo, "ligo")
cls.register(cls.__xenon, "xenon")
policy_module = None
try:
Expand Down

0 comments on commit dac9bd8

Please sign in to comment.