home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 1483084097

This data as json

html_url issue_url id node_id user created_at updated_at author_association body reactions performed_via_github_app issue
https://github.com/pydata/xarray/pull/7669#issuecomment-1483084097 https://api.github.com/repos/pydata/xarray/issues/7669 1483084097 IC_kwDOAMm_X85YZhFB 2448579 2023-03-24T16:28:26Z 2023-03-24T16:28:26Z MEMBER

Looks like the outputs are missing part of the DataArray repr and only show the underlying array values.

The common way to construct the right doctest is to type the command in a Python repl and copy-paste the output.

Here, I recommend installing pytest-accept(docs). That will rewrite the files to give you the expected output.

bash $ conda activate YOUR_XARRAY_DEV_ENV $ pip install pytest-accept $ pytest --doctest-modules xarray/core/accessor_str.py --accept

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  1639361476
Powered by Datasette · Queries took 2.125ms · About: xarray-datasette