Skip to content

Review use of numpy array print formats, and Python2/3 variation #3138

Description

@pp-mo

Iris tests need a stable array print format when comparing text results:

  • in doctests, and
  • within assertCML testing.

This caused considerable difficulties when adding Matplotlib 2 support.
See : #3019 (comment)

Recently this happens again, since numpy 1.15 (?probably).
We now have different printouts in Python 2 and Python 3.
See : #3134
N.B. I think this does not relate to use of the 'legacy' option, As this only has effect in printing Iris objects. Whereas, the docstring incompatibility encountered in #3134, e.g. between travis test 8514.7 and 8514.8 here, happens when just printing arrays.

TODO:

  • see if there is anything better we can do here
  • see if this is a mistake in numpy, or if they just don't care about this kind of difference

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