issues: 561316080
This data as json
id | node_id | number | title | user | state | locked | assignee | milestone | comments | created_at | updated_at | closed_at | author_association | active_lock_reason | draft | pull_request | body | reactions | performed_via_github_app | state_reason | repo | type |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
561316080 | MDU6SXNzdWU1NjEzMTYwODA= | 3760 | Truncate array repr based on line count | 5635139 | closed | 0 | 1 | 2020-02-06T22:48:58Z | 2020-06-24T16:04:12Z | 2020-06-24T16:04:12Z | MEMBER | MCVE Code SampleI thought we might have had an issue (and maybe solved it?) but couldn't find it anywhere. Forgive me if I'm duplicating. ```python xr.DataArray(np.random.rand(100,5,1)) <xarray.DataArray (dim_0: 100, dim_1: 5, dim_2: 1)> array([[[0.71333665], [0.93820892], [0.48678056], [0.07299961], [0.63542414]], *** Deleted 400 lines ***
Dimensions without coordinates: dim_0, dim_1, dim_2 ``` Expected OutputWith larger arrays, it's much more reasonable: ``` <xarray.DataArray (dim_0: 500, dim_1: 6, dim_2: 1)> array([[[0.9680447 ], [0.12554914], [0.9163406 ], [0.63710986], [0.97778361], [0.6419909 ]],
Dimensions without coordinates: dim_0, dim_1, dim_2 ``` Problem DescriptionSomething like 40 lines is probably a reasonable place to truncate? Output of
|
{ "url": "https://api.github.com/repos/pydata/xarray/issues/3760/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
completed | 13221727 | issue |