Skip to content

Remove the deprecated rasterize, reproject and mcda keyword aliases for 1.0.0 #3763

Open

Description

@brendancol

Reason or Problem

Three keyword aliases in rasterize, reproject and mcda were renamed during 0.10.x and kept as deprecated spellings that warn with DeprecationWarning:

Deprecated Replacement Where
rasterize(use_cuda=...) rasterize(gpu=...) xrspatial/rasterize.py (#3089)
reproject(src_vertical_crs=..., tgt_vertical_crs=...) source_vertical_crs=, target_vertical_crs= xrspatial/reproject/__init__.py
owa(criterion_weights=...) owa(weights=...) xrspatial/mcda/combine.py

None of the warnings names a removal version. The stability policy for 1.0 (#3760, PR #3761) says deprecated names go away in the next major, and 1.0.0 is that release.

Proposal

Remove the three shims, their sentinel helpers, and the tests that exercise the old spellings. Passing an old name then raises the ordinary TypeError: got an unexpected keyword argument. Add one test per removal that asserts this. Update any example or doc that still uses the old spelling.

The 0.x to 1.0 migration page (docs/source/user_guide/migration_1_0.rst, PR #3761) lists all three.

Stakeholders and Impacts

Breaking change, shipped only in 1.0.0. Anyone whose 0.10.20 test run is clean under -W error::DeprecationWarning is unaffected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions