Skip to content

Commit

Permalink
make open_virtual_dataset a staticmethod
Browse files Browse the repository at this point in the history
  • Loading branch information
TomNicholas committed Oct 18, 2024
1 parent 79477a9 commit fc2f3bc
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions virtualizarr/readers/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ def separate_coords(


class VirtualBackend(ABC):
@staticmethod
def open_virtual_dataset(
filepath: str,
group: str | None = None,
Expand All @@ -181,6 +182,7 @@ def open_virtual_dataset(
) -> Dataset:
raise NotImplementedError()

@staticmethod
def open_virtual_datatree(
path: str,
group: str | None = None,
Expand Down
1 change: 1 addition & 0 deletions virtualizarr/readers/dmrpp.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@


class DMRPPVirtualBackend(VirtualBackend):
@staticmethod
def open_virtual_dataset(
filepath: str,
group: str | None = None,
Expand Down
1 change: 1 addition & 0 deletions virtualizarr/readers/fits.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@


class FITSVirtualBackend(VirtualBackend):
@staticmethod
def open_virtual_dataset(
filepath: str,
group: str | None = None,
Expand Down
1 change: 1 addition & 0 deletions virtualizarr/readers/hdf5.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@


class HDF5VirtualBackend(VirtualBackend):
@staticmethod
def open_virtual_dataset(
filepath: str,
group: str | None = None,
Expand Down
1 change: 1 addition & 0 deletions virtualizarr/readers/kerchunk.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@


class KerchunkVirtualBackend(VirtualBackend):
@staticmethod
def open_virtual_dataset(
filepath: str,
group: str | None = None,
Expand Down
1 change: 1 addition & 0 deletions virtualizarr/readers/netcdf3.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@


class NetCDF3VirtualBackend(VirtualBackend):
@staticmethod
def open_virtual_dataset(
filepath: str,
group: str | None = None,
Expand Down
1 change: 1 addition & 0 deletions virtualizarr/readers/tiff.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@


class TIFFVirtualBackend(VirtualBackend):
@staticmethod
def open_virtual_dataset(
filepath: str,
group: str | None = None,
Expand Down
1 change: 1 addition & 0 deletions virtualizarr/readers/zarr_v3.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@


class ZarrV3VirtualBackend(VirtualBackend):
@staticmethod
def open_virtual_dataset(
filepath: str,
group: str | None = None,
Expand Down

0 comments on commit fc2f3bc

Please sign in to comment.