Skip to content

Commit

Permalink
remove deprecated .drop() in drop_dimension
Browse files Browse the repository at this point in the history
  • Loading branch information
Lukas Weidenholzer committed Jul 14, 2023
1 parent cff6768 commit 7d537c7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def drop_dimension(data: RasterCube, name: str) -> RasterCube:
raise DimensionLabelCountMismatch(
f"The number of dimension labels exceeds one, which requires a reducer. Dimension ({name}) has {len(data[name])} labels."
)
return data.drop(name)
return data.drop_vars(name).squeeze()


def create_raster_cube() -> RasterCube:
Expand Down

0 comments on commit 7d537c7

Please sign in to comment.