Skip to content

Commit f95319f

Browse files
committed
resolve comments
Signed-off-by: Martijn Govers <[email protected]>
1 parent 77044dd commit f95319f

File tree

1 file changed

+1
-16
lines changed

1 file changed

+1
-16
lines changed

tests/validation/utils.py

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
import json
66
import warnings
7-
from functools import lru_cache
87
from pathlib import Path
98
from typing import Generator, List, Mapping, Tuple
109

@@ -16,21 +15,7 @@
1615
from power_grid_model.errors import PowerGridSerializationError
1716
from power_grid_model.utils import import_json_data, json_deserialize_from_file
1817

19-
from power_grid_model_io.data_types import ExtraInfo, StructuredData
20-
21-
22-
@lru_cache()
23-
def load_json_file(file_path: Path) -> StructuredData:
24-
"""
25-
Load (and cache) a json file
26-
Args:
27-
file_path: The path to the json file
28-
29-
Returns: The parsed contents of the json file in a native python structure
30-
"""
31-
with file_path.open(mode="r", encoding="utf-8") as json_file:
32-
data = json.load(json_file)
33-
return data
18+
from power_grid_model_io.data_types import ExtraInfo
3419

3520

3621
def component_objects(json_path: Path) -> Generator[Tuple[str, List[int]], None, None]:

0 commit comments

Comments
 (0)