From 67d8f447857867c175b266eb5194a0675711b4f7 Mon Sep 17 00:00:00 2001 From: Hauke Schulz <43613877+observingClouds@users.noreply.github.com> Date: Wed, 12 Feb 2025 15:06:33 +0100 Subject: [PATCH] quick fix of #69 --- mllam_data_prep/ops/selection.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/mllam_data_prep/ops/selection.py b/mllam_data_prep/ops/selection.py index 37b91c1..3b56500 100644 --- a/mllam_data_prep/ops/selection.py +++ b/mllam_data_prep/ops/selection.py @@ -71,13 +71,7 @@ def select_by_kwargs(ds, **coord_ranges): # we don't select with the step size for now, but simply check (below) that # the step size in the data is the same as the requested step size - ds = ds.sel({coord: slice(sel_start, sel_end)}) - - if coord == "time": - check_point_in_dataset(coord, sel_start, ds) - check_point_in_dataset(coord, sel_end, ds) - if sel_step is not None: - check_step(sel_step, coord, ds) + ds = ds.sel({coord: slice(sel_start, sel_end, sel_step)}) assert ( len(ds[coord]) > 0