Skip to content

formatting of nep-18 compatible arrays with assert_* #3616

Closed

Description

@keewis

At the moment, the formatting.diff_*_repr functions that provide the pretty-printing for assert_* use repr to format NEP-18 strings, truncating the result if it is too long. In the case of pint's quantities, this makes the pretty printing useless since only a few values are visible and the unit is in the truncated part.

What should we about this? Does pint have to change its repr?

xref #3611

Activity

  1. changed the title [-]formatting of arrays with units with assert_*[/-] [+]formatting of nep-18 compatible arrays with assert_*[/+] on Dec 12, 2019
  2. keewis commented on Dec 12, 2019

    @keewis
    CollaboratorAuthor

    oh, sorry, maybe this is a duplicate of #2773?

  3. TomNicholas commented on Dec 13, 2019

    @TomNicholas
    Member

    maybe this is a duplicate

    Yeah it basically is now that unitful arrays are nearly ready - let's discuss it there instead.

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