Skip to content

Commit c159821

Browse files
committed
Add placeholder implementation
Add a minimal backend which just calls through to xarray.open_dataset without adding any functionality.
1 parent 1013b59 commit c159821

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

xrenmap/xrenmap.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import os
2+
from collections.abc import Iterable
3+
from typing import Any
4+
5+
import xarray as xr
6+
7+
class EnmapEntrypoint(xr.backends.BackendEntrypoint):
8+
9+
def open_dataset(
10+
self,
11+
filename_or_obj: str | os.PathLike[Any],
12+
*,
13+
drop_variables: str | Iterable[str] | None = None,
14+
) -> xr.Dataset:
15+
return xr.open_dataset(filename_or_obj)

0 commit comments

Comments
 (0)