Skip to content

Commit

Permalink
remove lru cache legacy new mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
RoyStegeman committed Oct 31, 2024
1 parent 52e3ec5 commit b88afc0
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions nnpdf_data/nnpdf_data/__init__.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
from functools import lru_cache
import pathlib

import ruamel.yaml as yaml

from ._version import __version__

path_vpdata = pathlib.Path(__file__).parent
path_commondata = path_vpdata / "commondata"

Expand All @@ -19,7 +16,6 @@
}


@lru_cache
def legacy_to_new_map(dataset_name, sys=None):
"""Find the new dataset name and variant corresponding to an old dataset
and systematics choice"""
Expand All @@ -39,7 +35,6 @@ def legacy_to_new_map(dataset_name, sys=None):
return new_name, variant


@lru_cache
def new_to_legacy_map(dataset_name, variant_used):
"""Loop over the dictionary and find the right dataset.
Expand Down

0 comments on commit b88afc0

Please sign in to comment.