Skip to content

Commit

Permalink
quick fix of mllam#69
Browse files Browse the repository at this point in the history
  • Loading branch information
observingClouds committed Feb 12, 2025
1 parent ac268f5 commit 67d8f44
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions mllam_data_prep/ops/selection.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 67d8f44

Please sign in to comment.