Skip to content

Commit

Permalink
Serialize fix
Browse files Browse the repository at this point in the history
  • Loading branch information
oyvindeide committed Oct 1, 2024
1 parent b8bddf1 commit bf62a77
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/ert/config/refcase.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class Refcase:
start_date: datetime
keys: List[str]
dates: Sequence[datetime]
values: List[float]
values: List[List[float]]

def __eq__(self, other: object) -> bool:
if not isinstance(other, Refcase):
Expand Down Expand Up @@ -48,5 +48,7 @@ def from_config_dict(cls, config_dict: ConfigDict) -> Optional["Refcase"]:
raise ConfigValidationError(f"Could not read refcase: {err}") from err

return (
cls(start_date, refcase_keys, time_map, data) if data is not None else None
cls(start_date, refcase_keys, time_map, data.tolist())
if data is not None
else None
)

0 comments on commit bf62a77

Please sign in to comment.