Skip to content

Commit

Permalink
use lru_cache during tests
Browse files Browse the repository at this point in the history
  • Loading branch information
btschwertfeger committed May 20, 2024
1 parent 80edce8 commit 4355695
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

from __future__ import annotations

from functools import cache
from functools import lru_cache

import numpy as np
import xarray as xr
Expand Down Expand Up @@ -47,7 +47,7 @@ def is_3d_rmse_better(result, obsp, simp) -> bool:
return (rmse_values_new_ds < rmse_values_old_ds).all()


@cache
@lru_cache(maxsize=None)
def get_datasets(kind: str) -> tuple[xr.Dataset, xr.Dataset, xr.Dataset, xr.Dataset]:
historical_time = xr.cftime_range(
"1971-01-01",
Expand Down

0 comments on commit 4355695

Please sign in to comment.