home / github

Menu
  • GraphQL API
  • Search all tables

issue_comments

Table actions
  • GraphQL API for issue_comments

6 rows where author_association = "MEMBER" and issue = 520306672 sorted by updated_at descending

✎ View and edit SQL

This data as json, CSV (advanced)

Suggested facets: reactions, created_at (date), updated_at (date)

user 3

  • andersy005 3
  • dcherian 2
  • max-sixty 1

issue 1

  • Harmonize `FillValue` and `missing_value` during encoding and decoding steps · 6 ✖

author_association 1

  • MEMBER · 6 ✖
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions performed_via_github_app issue
553680297 https://github.com/pydata/xarray/pull/3502#issuecomment-553680297 https://api.github.com/repos/pydata/xarray/issues/3502 MDEyOklzc3VlQ29tbWVudDU1MzY4MDI5Nw== max-sixty 5635139 2019-11-14T01:22:57Z 2019-11-14T01:22:57Z MEMBER

Thanks @andersy005 !

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Harmonize `FillValue` and `missing_value` during encoding and decoding steps 520306672
553009531 https://github.com/pydata/xarray/pull/3502#issuecomment-553009531 https://api.github.com/repos/pydata/xarray/issues/3502 MDEyOklzc3VlQ29tbWVudDU1MzAwOTUzMQ== dcherian 2448579 2019-11-12T17:48:30Z 2019-11-12T17:48:30Z MEMBER

Let's do bug fixes

{
    "total_count": 1,
    "+1": 1,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Harmonize `FillValue` and `missing_value` during encoding and decoding steps 520306672
553008854 https://github.com/pydata/xarray/pull/3502#issuecomment-553008854 https://api.github.com/repos/pydata/xarray/issues/3502 MDEyOklzc3VlQ29tbWVudDU1MzAwODg1NA== andersy005 13301940 2019-11-12T17:47:11Z 2019-11-12T17:47:11Z MEMBER

@dcherian & @shoyer, thank you both for your help!

In which section(bug fixes? enhancements?) in whats-new.rst should I document these changes?

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Harmonize `FillValue` and `missing_value` during encoding and decoding steps 520306672
552744698 https://github.com/pydata/xarray/pull/3502#issuecomment-552744698 https://api.github.com/repos/pydata/xarray/issues/3502 MDEyOklzc3VlQ29tbWVudDU1Mjc0NDY5OA== andersy005 13301940 2019-11-12T05:47:26Z 2019-11-12T05:47:26Z MEMBER

@dcherian,

You'll have to convert back from the numpy array before exiting that function.

I was able to address this using @shoyer's suggestion above.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Harmonize `FillValue` and `missing_value` during encoding and decoding steps 520306672
552493241 https://github.com/pydata/xarray/pull/3502#issuecomment-552493241 https://api.github.com/repos/pydata/xarray/issues/3502 MDEyOklzc3VlQ29tbWVudDU1MjQ5MzI0MQ== dcherian 2448579 2019-11-11T15:34:55Z 2019-11-11T15:34:55Z MEMBER

Thanks for taking this on, Anderson.

You'll have to convert back from the numpy array before exiting that function. It may be simpler if you avoid the cast and just keep the change from equivalent to allclose_or_equiv.

For reference, here's how xarray determines dtype for netCDF4 https://github.com/pydata/xarray/blob/4e9240a2087ffbf119919e1ac98046bbf164f94d/xarray/backends/netCDF4_.py#L131-L141

(I found this by working looking for the createVariable statement here) https://github.com/pydata/xarray/blob/4e9240a2087ffbf119919e1ac98046bbf164f94d/xarray/backends/netCDF4_.py#L439-L485

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Harmonize `FillValue` and `missing_value` during encoding and decoding steps 520306672
552049679 https://github.com/pydata/xarray/pull/3502#issuecomment-552049679 https://api.github.com/repos/pydata/xarray/issues/3502 MDEyOklzc3VlQ29tbWVudDU1MjA0OTY3OQ== andersy005 13301940 2019-11-09T01:13:22Z 2019-11-09T01:21:27Z MEMBER

@dcherian, what is the right way to do the type casting in encode()?

I thought of trying something along these lines:

python encoding["missing_value"] = encoding["missing_value"].astype(data.dtype) However, I quickly realized that this breaks when encoding["missing_value"] is not a numpy object.

EDIT:

I will try using np.asarray():

python encoding["missing_value"] = np.asarray(encoding["missing_value"]).astype(data.dtype)

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Harmonize `FillValue` and `missing_value` during encoding and decoding steps 520306672

Advanced export

JSON shape: default, array, newline-delimited, object

CSV options:

CREATE TABLE [issue_comments] (
   [html_url] TEXT,
   [issue_url] TEXT,
   [id] INTEGER PRIMARY KEY,
   [node_id] TEXT,
   [user] INTEGER REFERENCES [users]([id]),
   [created_at] TEXT,
   [updated_at] TEXT,
   [author_association] TEXT,
   [body] TEXT,
   [reactions] TEXT,
   [performed_via_github_app] TEXT,
   [issue] INTEGER REFERENCES [issues]([id])
);
CREATE INDEX [idx_issue_comments_issue]
    ON [issue_comments] ([issue]);
CREATE INDEX [idx_issue_comments_user]
    ON [issue_comments] ([user]);
Powered by Datasette · Queries took 478.621ms · About: xarray-datasette