Skip to content

Coords to print shorter, and avoid realising #4488

@pp-mo

Description

@pp-mo

Printing large coords has been a practical problem for some time : Although numpy can print arrays in a truncated form, the results for large coords are pretty unreadable (especially those with bounds)
-- and it always realises data.

This is really about Aux-coords, as only they have the potential to be multi-dimensional, and lazy.
Which, practically, means that only they will typically be "really large".
Nevertheless, it may be better to modify DimCoords also, for consistency.

Obviously, this is likely to be especially nasty for unstructured data.

We want to tackle this now, because it affects the printout of meshes -- which is currently pretty unreadable
However, it does mean "breaking change" -- if you care about the text output from printing coords.

STOP PRESS:
now also intending to produce a 'single-line format', inspired by the Cube.repr format.
This can help a lot with making Mesh printout more sensible.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions