home / github

Menu
  • GraphQL API
  • Search all tables

issue_comments

Table actions
  • GraphQL API for issue_comments

3 rows where issue = 1085619598 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 2

  • andersy005 2
  • zxdawn 1

author_association 2

  • MEMBER 2
  • NONE 1

issue 1

  • uint type data are read as wrong type (float64) · 3 ✖
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions performed_via_github_app issue
1008222099 https://github.com/pydata/xarray/issues/6091#issuecomment-1008222099 https://api.github.com/repos/pydata/xarray/issues/6091 IC_kwDOAMm_X848GD-T andersy005 13301940 2022-01-09T03:30:55Z 2022-01-09T03:30:55Z MEMBER

Ha, thanks. It makes sense now. Shall we close this?

Great! I'm closing this for the time being...

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  uint type data are read as wrong type (float64) 1085619598
998910844 https://github.com/pydata/xarray/issues/6091#issuecomment-998910844 https://api.github.com/repos/pydata/xarray/issues/6091 IC_kwDOAMm_X847iit8 zxdawn 30388627 2021-12-21T16:15:14Z 2021-12-21T16:15:14Z NONE

Ha, thanks. It makes sense now. Shall we close this?

{
    "total_count": 1,
    "+1": 1,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  uint type data are read as wrong type (float64) 1085619598
998789248 https://github.com/pydata/xarray/issues/6091#issuecomment-998789248 https://api.github.com/repos/pydata/xarray/issues/6091 IC_kwDOAMm_X847iFCA andersy005 13301940 2021-12-21T13:41:33Z 2021-12-21T13:42:23Z MEMBER

Note that I can't reproduce it using this example:

I could be wrong but it appears that when you introduce a _FillValue in your dataarray, you end up with the same outcome:

```python In [53]: import numpy as np ...: import xarray as xr ...: ...: da = xr.DataArray(np.array([1,2,4294967295], dtype='uint')).rename('test_array')

In [56]: da.encoding['_FillValue'] = 4294967295 ```

```python In [62]: da.to_netcdf("test.nc", engine='netcdf4')

In [63]: !ncdump -h test.nc netcdf test { dimensions: dim_0 = 3 ; variables: uint64 test_array(dim_0) ; test_array:_FillValue = 4294967295ULL ; data:

test_array = 1, 2, _ ; } ```

```python In [64]: d = Dataset("test.nc")

In [65]: d Out[65]: <class 'netCDF4._netCDF4.Dataset'> root group (NETCDF4 data model, file format HDF5): dimensions(sizes): dim_0(3) variables(dimensions): uint64 test_array(dim_0) groups:

In [66]: xr.open_dataset('test.nc') Out[66]: <xarray.Dataset> Dimensions: (dim_0: 3) Dimensions without coordinates: dim_0 Data variables: test_array (dim_0) float64 ... ```

python In [67]: xr.open_dataset('test.nc').test_array Out[67]: <xarray.DataArray 'test_array' (dim_0: 3)> array([ 1., 2., nan]) Dimensions without coordinates: dim_0 Notice that xarray is using np.NaN as a sentinel value for the missing / fill_values. Because np.NaN is a float, this forces the entire array of integers to become floating pointing numbers...

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  uint type data are read as wrong type (float64) 1085619598

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 13.717ms · About: xarray-datasette