We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 20e3807 commit 1578579Copy full SHA for 1578579
src/ess/sans/data.py
@@ -1,5 +1,6 @@
1
# SPDX-License-Identifier: BSD-3-Clause
2
# Copyright (c) 2023 Scipp contributors (https://github.com/scipp)
3
+from functools import cache
4
5
6
class Registry:
@@ -25,6 +26,7 @@ def __init__(
25
26
def __contains__(self, key):
27
return key in self._registry.registry
28
29
+ @cache # noqa: B019
30
def get_path(self, name: str, unzip: bool = False) -> str:
31
"""
32
Get the path to a file in the registry.
0 commit comments