Skip to content

Commit ebb0a7a

Browse files
committed
Remove unused helper
1 parent c64dace commit ebb0a7a

1 file changed

Lines changed: 0 additions & 13 deletions

File tree

tests/datasets/test_utils.py

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,6 @@
66
from parcels._datasets.structured.generic import datasets
77

88

9-
def _replace_with_cf_time(ds) -> xr.Dataset:
10-
import cftime
11-
12-
assert "time" in ds, "Dataset must have a dimension named 'time'"
13-
ntime = 12
14-
ntime = min(ntime, len(ds.time.values))
15-
ds = ds.isel(time=slice(None, ntime))
16-
17-
dates = [cftime.DatetimeNoLeap(1, month, 1) for month in range(1, ntime + 1)]
18-
ds["time"] = dates
19-
return ds
20-
21-
229
@pytest.fixture
2310
def nonzero_ds():
2411
"""Small dataset with nonzero data_vars and non-index coords for replace_arrays_with_zeros tests.

0 commit comments

Comments
 (0)