pull_requests: 13610079
This data as json
id | node_id | number | state | locked | title | user | body | created_at | updated_at | closed_at | merged_at | merge_commit_sha | assignee | milestone | draft | head | base | author_association | auto_merge | repo | url | merged_by |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
13610079 | MDExOlB1bGxSZXF1ZXN0MTM2MTAwNzk= | 70 | closed | 0 | ENH: Improved __repr__/__str__ for xray objects | 1217238 | The new `__repr__` for xray.Dataset is inspired by the representation for iris.Cube: ``` <xray.Dataset> Coordinates: (time: 20, dim1: 100, dim2: 50, dim3: 10) Non-coordinates: var1 - X X - var2 - X X - var3 - X - X Attributes: Empty ``` The new `__repr__` for xray.XArray and xray.DatasetArray shows the actual data as summarized by `repr(array.data)`, as long as the data is an ndarray or has fewer than 10^5 elements (~400 KB): ``` <xray.DatasetArray 'my_variable' (time: 2, x: 3)> array([[1, 2, 3], [4, 5, 6]]) Attributes: foo: bar ``` `__repr__` not showing the data was a complaint I heard about the prior representation. I removed the separate `__str__` implementation so we can have one canonical string representation (both implementations showed equivalent information). I am definitely open to suggestions for improving either of these! Note that unlike the old `__str__` implementation, I'm not doing any truncations of long line here. We could add that back in (perhaps for attributes) if it seems helpful. | 2014-03-16T06:00:58Z | 2014-03-27T09:05:05Z | 2014-03-24T20:46:31Z | 2014-03-24T20:46:31Z | 0f1d9864ebbdaf2206a1bdadef517ea1c763e138 | 0 | 0e1837cd13811e075c5fb33f2a4e4dd9b354f725 | 9bf3708be4574f85d6c664d9bb80742d5a37a2c0 | MEMBER | 13221727 | https://github.com/pydata/xarray/pull/70 |
Links from other tables
- 0 rows from pull_requests_id in labels_pull_requests