Skip to content

Commit

Permalink
Update to main save/load methods
Browse files Browse the repository at this point in the history
Signed-off-by: Harm Matthias Harms <[email protected]>
  • Loading branch information
harm-matthias-harms authored Oct 7, 2024
1 parent 29929d6 commit b789b01
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kedro-datasets/kedro_datasets/geopandas/generic_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ def _ensure_file_system_target(self) -> None:
f"does not support a filepath target/source."
)

def _load(self) -> gpd.GeoDataFrame | dict[str, gpd.GeoDataFrame]:
def load(self) -> gpd.GeoDataFrame | dict[str, gpd.GeoDataFrame]:
self._ensure_file_system_target()

load_path = get_filepath_str(self._get_load_path(), self._protocol)
Expand All @@ -163,7 +163,7 @@ def _load(self) -> gpd.GeoDataFrame | dict[str, gpd.GeoDataFrame]:
"https://geopandas.org/en/stable/docs/reference/io.html"
)

def _save(self, data: gpd.GeoDataFrame) -> None:
def save(self, data: gpd.GeoDataFrame) -> None:
self._ensure_file_system_target()

save_path = get_filepath_str(self._get_save_path(), self._protocol)
Expand Down

0 comments on commit b789b01

Please sign in to comment.