Skip to content

Commit

Permalink
Speed up local_experiment
Browse files Browse the repository at this point in the history
  • Loading branch information
eivindjahren committed Feb 2, 2024
1 parent 949aa1a commit 98a43cc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/ert/storage/local_experiment.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import dataclasses
import json
from datetime import datetime
from functools import cached_property
from pathlib import Path
from typing import TYPE_CHECKING, Any, Dict, Generator, List, Optional, Union
from uuid import UUID
Expand Down Expand Up @@ -113,15 +114,15 @@ def get_surface(self, name: str) -> xtgeo.RegularSurface:
dtype=np.float32,
)

@property
@cached_property
def parameter_configuration(self) -> Dict[str, ParameterConfig]:
params = {}
for data in self.parameter_info.values():
param_type = data.pop("_ert_kind")
params[data["name"]] = _KNOWN_PARAMETER_TYPES[param_type](**data)
return params

@property
@cached_property
def response_configuration(self) -> Dict[str, ResponseConfig]:
params = {}
for data in self.response_info.values():
Expand Down

0 comments on commit 98a43cc

Please sign in to comment.