Skip to content

Why are ScalarCoords listed in cube.aux_coords? #4530

Description

@kaedonkers

🐛 Bug Report

The tuple that is cube.aux_coords contains scalar coords. Why? Surely ScalarCoords are not the same as AuxCoords? This presents a problem when trying to remove AuxCoords from a cube, for instance to deal with errors when using cube.coords(dimensions=[0]) (see #3324).

How To Reproduce

Inspect cube.aux_coords for a cube containing both AuxCoords and ScalarCoords. You will find that both types of coords are present in the tuple.

Expected behaviour

cube.aux_coords returns a tuple containing only AuxCoords.

Environment

  • OS & Version: RHEL7
  • Iris Version: 3.1.0

Activity

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions