Skip to content

Invalid coords in summary is superfluous #3496

@stephenworsley

Description

@stephenworsley

I'm pretty sure that cube.summary() will never produce an Invalid coordinate. Specifically, when this line is called:

invalid_coords = [coord for coord in all_coords if id(coord) not

I believe that invalid_coords will always be empty. It is essentially defined as a coordinate which is neither a scalar coordinate nor a vector coordinate, however vector coordinates are already defined so that they contain all coordinates which are not scalar coordinates. This means that all coordinates are necessarily either scalar or vector coordinates at this point.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions