From dac9bd8cd4f9489635956e35ebff47183068d1ba Mon Sep 17 00:00:00 2001 From: rdimaio Date: Tue, 7 Jan 2025 16:24:23 +0100 Subject: [PATCH] Core: Remove LIGO algorithm (migrated to policy package); #7187 Verified with LIGO that this algorithm is being used in their policy package, and is safe to be removed from the main Rucio code. --- lib/rucio/rse/translation.py | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/lib/rucio/rse/translation.py b/lib/rucio/rse/translation.py index 3ae15a3391..4a38522d4e 100644 --- a/lib/rucio/rse/translation.py +++ b/lib/rucio/rse/translation.py @@ -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): """ @@ -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: