Skip to content

Commit

Permalink
refactor(accessor) : now private
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolasK committed Dec 13, 2024
1 parent c9665a4 commit d063788
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion earthdaily/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from typing import Optional
from pathlib import Path
from . import earthdatastore, datasets
from .accessor import EarthDailyAccessorDataArray, EarthDailyAccessorDataset
from .accessor import __EarthDailyAccessorDataArray, __EarthDailyAccessorDataset

# import warnings
# to hide warnings from rioxarray or nano seconds conversion
Expand Down
4 changes: 2 additions & 2 deletions earthdaily/accessor/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def _xr_rio_clip(datacube, geom):


@xr.register_dataarray_accessor("ed")
class EarthDailyAccessorDataArray:
class __EarthDailyAccessorDataArray:
def __init__(self, xarray_obj):
self._obj = xarray_obj

Expand Down Expand Up @@ -206,7 +206,7 @@ def drop_unfrozen_coords(self, keep_spatial_ref=True):


@xr.register_dataset_accessor("ed")
class EarthDailyAccessorDataset(EarthDailyAccessorDataArray):
class __EarthDailyAccessorDataset(__EarthDailyAccessorDataArray):
def __init__(self, xarray_obj):
self._obj = xarray_obj

Expand Down

0 comments on commit d063788

Please sign in to comment.