Skip to content

Commit

Permalink
remove problematic lru_caches
Browse files Browse the repository at this point in the history
  • Loading branch information
RoyStegeman committed Oct 31, 2024
1 parent 01eb983 commit d141a2a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions nnpdf_data/nnpdf_data/__init__.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
from functools import lru_cache
pass
import pathlib

import ruamel.yaml as yaml

from ._version import __version__
pass

path_vpdata = pathlib.Path(__file__).parent
path_commondata = path_vpdata / "commondata"
Expand All @@ -19,7 +19,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 +38,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 d141a2a

Please sign in to comment.