Skip to content

DeprecationWarnings #4574

@rcomer

Description

@rcomer

📰 Custom Issue

A couple of DeprecationWarnings I've spotted that should probably be addressed at some point. They can be reproduced by running test modules, but don't seem to show up in the CI.

Steps to reproduce

  • Check out a current branch
  • Activate an up-to-date iris-dev environment
[git-path]/iris/lib/iris/analysis/_area_weighted.py:606: DeprecationWarning: Out of bound index found. This was previously ignored when the indexing result contained no elements. In the future the index error will be raised. This error occurs either due to an empty slice, or if an array has zero elements even before indexing.
  (Use `warnings.simplefilter('error')` to turn this DeprecationWarning into an error and get more details on the invalid index.)
    src_area_datas_square = src_data[
[conda-path]/iris-dev/lib/python3.8/site-packages/nc_time_axis/__init__.py:41: DeprecationWarning: CalendarDateTime is obsolete and will be deprecated in nc_time_axis version 1.5.  Please consider switching to plotting instances or subclasses of cftime.datetime directly.

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