Skip to content

Smarter Debug formatting for arrays #398

Closed
@bluss

Description

@bluss
  • Print only part of the array if it has too many elements
  • Select width and precision better, for a nice and readable display

inspiration:

array([[ 0.    ,  0.0001,  0.0002, ...,  0.0002,  0.0003,  0.0004],
       [ 0.1   ,  0.09  ,  0.1   , ...,  0.1   ,  0.1   ,  0.1   ],
       [ 0.0024,  0.0025,  0.0026, ...,  0.0026,  0.0027,  0.0028],
       ..., 
       [ 0.0024,  0.0025,  0.0026, ...,  0.0026,  0.0027,  0.0028],
       [ 0.0036,  0.0037,  0.0038, ...,  0.0038,  0.0039,  0.004 ],
       [ 0.0048,  0.0049,  0.005 , ...,  0.005 ,  0.0051,  0.0052]])

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions