Skip to content

Commit

Permalink
Temporarily disable doctest for GeotiffDataset
Browse files Browse the repository at this point in the history
Signed-off-by: Merel Theisen <[email protected]>
  • Loading branch information
merelcht committed Jan 4, 2024
1 parent fcce1d8 commit de93a19
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ dataset-doctest%:
--ignore kedro_datasets/snowflake/snowpark_dataset.py \
--ignore kedro_datasets/spark/spark_hive_dataset.py \
--ignore kedro_datasets/spark/spark_jdbc_dataset.py \
--ignore kedro_datasets/xarray/geotiff_dataset.py \
$(extra_pytest_arg${*})

test-sequential:
Expand Down
17 changes: 8 additions & 9 deletions kedro-datasets/kedro_datasets/xarray/geotiff_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,13 @@

from copy import deepcopy
from pathlib import PurePosixPath
from typing import Any, Dict
from typing import Any

import fsspec
import rioxarray as rxr
import xarray
from kedro.io.core import Version, get_filepath_str, get_protocol_and_path

from kedro.io import AbstractVersionedDataset, DatasetError
from kedro.io.core import Version, get_filepath_str, get_protocol_and_path


class GeoTiffDataset(AbstractVersionedDataset[xarray.DataArray, xarray.DataArray]):
Expand Down Expand Up @@ -50,16 +49,16 @@ class GeoTiffDataset(AbstractVersionedDataset[xarray.DataArray, xarray.DataArray
"""

DEFAULT_LOAD_ARGS: Dict[str, Any] = {}
DEFAULT_SAVE_ARGS: Dict[str, Any] = {}
DEFAULT_LOAD_ARGS: dict[str, Any] = {}
DEFAULT_SAVE_ARGS: dict[str, Any] = {}

def __init__( # noqa: PLR0913
self,
filepath: str,
load_args: Dict[str, Any] = None,
save_args: Dict[str, Any] = None,
load_args: dict[str, Any] = None,
save_args: dict[str, Any] = None,
version: Version = None,
metadata: Dict[str, Any] = None,
metadata: dict[str, Any] = None,
):
"""Creates a new instance of ``GeoTiffDataset`` pointing to a concrete
tiff or tif file with geospatial data.
Expand Down Expand Up @@ -120,7 +119,7 @@ def _exists(self) -> bool:

return self._fs.exists(load_path)

def _describe(self) -> Dict[str, Any]:
def _describe(self) -> dict[str, Any]:
return {
"filepath": self._filepath,
"load_args": self._load_args,
Expand Down

0 comments on commit de93a19

Please sign in to comment.