Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pretty print of arrays #6

Open
pseth opened this issue Jan 20, 2016 · 1 comment
Open

pretty print of arrays #6

pseth opened this issue Jan 20, 2016 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@pseth
Copy link
Member

pseth commented Jan 20, 2016

Arrays of dimension 3 or more are currently flattened for printing.

@Wentzell
Copy link
Member

Indeed we should pretty print as numpy does. E.g. for

a = numpy.array([[[[1,2],[3,4]],[[5,6],[7,8]]],[[[1,2],[3,4]],[[5,6],[7,8]]]])

we should print

[[[[1 2]
   [3 4]]

  [[5 6]
   [7 8]]]


 [[[1 2]
   [3 4]]

  [[5 6]
   [7 8]]]]

This means one '\n' for every closing bracket.

@Wentzell Wentzell transferred this issue from TRIQS/triqs Aug 11, 2020
@parcollet parcollet added the enhancement New feature or request label Aug 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants