Skip to content

Commit

Permalink
REMOVE: drop operators
Browse files Browse the repository at this point in the history
  • Loading branch information
nocollier authored Oct 10, 2024
1 parent c4848e7 commit 23534ca
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 213 deletions.
6 changes: 1 addition & 5 deletions intake_esgf/catalog.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from functools import partial
from multiprocessing.pool import ThreadPool
from pathlib import Path
from typing import Any, Callable, Literal, Union
from typing import Callable, Literal, Union

import pandas as pd
import requests
Expand Down Expand Up @@ -601,7 +601,6 @@ def to_dataset_dict(
add_measures: bool = True,
globus_endpoint: Union[str, None] = None,
globus_path: Union[Path, None] = None,
operators: list[Any] = [],
) -> dict[str, xr.Dataset]:
"""Return the current search as a dictionary of datasets.
Expand Down Expand Up @@ -706,9 +705,6 @@ def to_dataset_dict(
):
ds[key] = add_cell_measures(ds[key], self)

# If the user specifies operators, apply them now
for op in operators:
ds = op(ds)
return ds

def remove_incomplete(self, complete: Callable[[pd.DataFrame], bool]):
Expand Down
156 changes: 0 additions & 156 deletions intake_esgf/operators.py

This file was deleted.

52 changes: 0 additions & 52 deletions intake_esgf/tests/test_operators.py

This file was deleted.

0 comments on commit 23534ca

Please sign in to comment.