Skip to content

Prepare for pending deprecation of .drop() from xarray, use drop_vars or others instead. #115

Description

@brews

Automated tests trigger loads of warnings about this. For e.g.

tests/test_input_damages.py::test_compute_ag_damages
  /Users/brewstermalevich/Projects/dscim/src/dscim/preprocessing/input_damages.py:426: PendingDeprecationWarning: dropping variables using `drop` will be deprecated; using drop_vars is encouraged.
    .drop("variable")

Should move the code away from using .drop() on xarray structures before this starts to throw errors.

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions