Skip to content

Commit

Permalink
removed unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
aaschwanden committed Nov 23, 2024
1 parent 0671c7f commit 17df94f
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions pism_ragis/processing.py
Original file line number Diff line number Diff line change
Expand Up @@ -578,9 +578,6 @@ def drop_nonnumeric_vars(self, errors: str = "ignore") -> xr.Dataset:
return self._obj.drop_vars(nonnumeric_vars, errors=errors)


def preprocess_sort(ds, dim: str = "pism_config_axis"):
return ds.sortby(dim)

@profileit
def load_ensemble(
filenames: List[Union[Path, str]], parallel: bool = True, engine: str = "netcdf4"
Expand Down Expand Up @@ -612,7 +609,6 @@ def load_ensemble(
ds = xr.open_mfdataset(
filenames,
parallel=parallel,
preprocess=preprocess_sort,
chunks={"exp_id": -1, "time": -1},
decode_cf=True,
engine=engine,
Expand Down

0 comments on commit 17df94f

Please sign in to comment.