home / github

Menu
  • Search all tables
  • GraphQL API

issue_comments

Table actions
  • GraphQL API for issue_comments

12 rows where user = 32473508 sorted by updated_at descending

✎ View and edit SQL

This data as json, CSV (advanced)

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

issue 7

  • open_mfdataset fails on variable attributes with 'list' type 3
  • .sel method gives error with float32 values 3
  • BUG fix +test .sel method gives error with float32 values 2
  • Add head(), tail() and thin() methods? 1
  • groupby on empty DataArray raises StopIteration 1
  • pynio causes dependency conflicts in py36 CI build 1
  • BUG: fix+test groupby on empty DataArray raises StopIteration 1

user 1

  • HasanAhmadQ7 · 12 ✖

author_association 1

  • CONTRIBUTOR 12
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions performed_via_github_app issue
518116251 https://github.com/pydata/xarray/issues/319#issuecomment-518116251 https://api.github.com/repos/pydata/xarray/issues/319 MDEyOklzc3VlQ29tbWVudDUxODExNjI1MQ== HasanAhmadQ7 32473508 2019-08-05T07:17:15Z 2019-08-05T07:17:15Z CONTRIBUTOR

Will work on this issue in the next three weeks if no one else does till then.

{
    "total_count": 1,
    "+1": 1,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Add head(), tail() and thin() methods? 57254455
517995453 https://github.com/pydata/xarray/pull/3153#issuecomment-517995453 https://api.github.com/repos/pydata/xarray/issues/3153 MDEyOklzc3VlQ29tbWVudDUxNzk5NTQ1Mw== HasanAhmadQ7 32473508 2019-08-04T11:29:44Z 2019-08-04T11:30:48Z CONTRIBUTOR

@shoyer A fix in pandas that I can imagine is to modify the pd.Index to retain the dtype similar to the PandasIndexAdapter in xarray/core/indexing. However, it seems to me that their design it to coerce any float to float64, so I did not feel they would consider this to be a bug. I would try to dig into such solution more if you recommend so.

I added a test case in which the coords are float16 (in addiction to the scalar case)to show that casting to the coords type is required.

The lowest level in which I can access the coords type is in the indexing/remap_label_indexers where I could get the coords from the data_obj. In the latest code, casting is done just before calling convert_label_indexer

Sorry if I am missing the point, and thank you in advance for any further feedback.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  BUG fix +test .sel method gives error with float32 values 470712573
517989768 https://github.com/pydata/xarray/issues/3137#issuecomment-517989768 https://api.github.com/repos/pydata/xarray/issues/3137 MDEyOklzc3VlQ29tbWVudDUxNzk4OTc2OA== HasanAhmadQ7 32473508 2019-08-04T09:59:21Z 2019-08-04T09:59:21Z CONTRIBUTOR

The case also arises if coords are float16. e.g.

data_values = np.arange(4) coord_values_16 = np.asarray(float_values, dtype='float16') array_16 = DataArray(data_values, [('float16_coord', coord_values_16)]) array_16.sel(float16_coord=float_values[1:3])

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  .sel method gives error with float32 values 469117528
517919790 https://github.com/pydata/xarray/issues/3034#issuecomment-517919790 https://api.github.com/repos/pydata/xarray/issues/3034 MDEyOklzc3VlQ29tbWVudDUxNzkxOTc5MA== HasanAhmadQ7 32473508 2019-08-03T12:08:05Z 2019-08-03T12:08:05Z CONTRIBUTOR

@jfpiolle Thank you very much for the clarification

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  open_mfdataset fails on variable attributes with 'list' type 457874038
515919693 https://github.com/pydata/xarray/pull/3153#issuecomment-515919693 https://api.github.com/repos/pydata/xarray/issues/3153 MDEyOklzc3VlQ29tbWVudDUxNTkxOTY5Mw== HasanAhmadQ7 32473508 2019-07-29T09:33:25Z 2019-07-29T09:34:07Z CONTRIBUTOR

@shoyer @max-sixty I really appreciate your time and feedback. I will work on it within a week.

{
    "total_count": 1,
    "+1": 1,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  BUG fix +test .sel method gives error with float32 values 470712573
515654610 https://github.com/pydata/xarray/issues/3034#issuecomment-515654610 https://api.github.com/repos/pydata/xarray/issues/3034 MDEyOklzc3VlQ29tbWVudDUxNTY1NDYxMA== HasanAhmadQ7 32473508 2019-07-27T05:41:59Z 2019-07-27T08:15:07Z CONTRIBUTOR

@jfpiolle Would you please share the files, or the code generating them?

As far as I understand we cannot have an attribute of type list. The closest thing I can think of is a variable length type as below

from netCDF4 import Dataset f = Dataset("example.nc","w") vlen_t = f.createVLType(numpy.int32, "phony_vlen") x = f.createDimension("x",3) y = f.createDimension("y",4) vlvar = f.createVariable("phony_vlen_var", vlen_t, ("y","x")) data =[] for n in range(0, len(x)*len(y)): data.append(numpy.arange(random.randint(1,10),dtype="int32")) data = numpy.reshape(data,(len(y),len(x))) vlvar[:] = data f.close() Using files generated this way, I did not get an error using mf_dataset.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  open_mfdataset fails on variable attributes with 'list' type 457874038
515626172 https://github.com/pydata/xarray/issues/3137#issuecomment-515626172 https://api.github.com/repos/pydata/xarray/issues/3137 MDEyOklzc3VlQ29tbWVudDUxNTYyNjE3Mg== HasanAhmadQ7 32473508 2019-07-26T23:16:22Z 2019-07-26T23:16:32Z CONTRIBUTOR

@dcherian I sent a PR last week. Any feedback would be appreciated

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  .sel method gives error with float32 values 469117528
514049445 https://github.com/pydata/xarray/issues/3034#issuecomment-514049445 https://api.github.com/repos/pydata/xarray/issues/3034 MDEyOklzc3VlQ29tbWVudDUxNDA0OTQ0NQ== HasanAhmadQ7 32473508 2019-07-23T04:28:58Z 2019-07-23T04:28:58Z CONTRIBUTOR

I will handle this issue this Saturday if no one else handle it by then.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  open_mfdataset fails on variable attributes with 'list' type 457874038
513609730 https://github.com/pydata/xarray/pull/3156#issuecomment-513609730 https://api.github.com/repos/pydata/xarray/issues/3156 MDEyOklzc3VlQ29tbWVudDUxMzYwOTczMA== HasanAhmadQ7 32473508 2019-07-22T01:39:43Z 2019-07-22T01:39:43Z CONTRIBUTOR

@Max-sixty I am delighted to be here. Thank you very much!

I modified as per your comments, please let me know if there are further modifications .

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  BUG: fix+test groupby on empty DataArray raises StopIteration 470770984
513500494 https://github.com/pydata/xarray/issues/3154#issuecomment-513500494 https://api.github.com/repos/pydata/xarray/issues/3154 MDEyOklzc3VlQ29tbWVudDUxMzUwMDQ5NA== HasanAhmadQ7 32473508 2019-07-20T21:28:20Z 2019-07-20T21:28:20Z CONTRIBUTOR

I am getting a different error for linux py36

Linux py36 UnsatisfiableError: The following specifications were found to be in conflict: - cfgrib[version='>=0.9.2'] - h5py - pynio

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  pynio causes dependency conflicts in py36 CI build 470714103
512711316 https://github.com/pydata/xarray/issues/3137#issuecomment-512711316 https://api.github.com/repos/pydata/xarray/issues/3137 MDEyOklzc3VlQ29tbWVudDUxMjcxMTMxNg== HasanAhmadQ7 32473508 2019-07-18T08:06:46Z 2019-07-18T08:06:46Z CONTRIBUTOR

@dcherian I would like to send a PR and work on this issue if there is no problem in this.

{
    "total_count": 1,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 1,
    "rocket": 0,
    "eyes": 0
}
  .sel method gives error with float32 values 469117528
509518811 https://github.com/pydata/xarray/issues/3037#issuecomment-509518811 https://api.github.com/repos/pydata/xarray/issues/3037 MDEyOklzc3VlQ29tbWVudDUwOTUxODgxMQ== HasanAhmadQ7 32473508 2019-07-09T07:09:05Z 2019-07-09T07:14:44Z CONTRIBUTOR

@shoyer I would like to work on this issue (hopefully my first contribution).

I believe the error should indicate that we cannot groupby an empty group. This would be consistent with the documentation:

``` DataArray.groupby(group, squeeze: bool = True, restore_coord_dims: Optional[bool] = None) Parameters groupstr, DataArray or IndexVariable Array whose unique values should be used to group this array. If a string, must be the name of a variable contained in this dataset. ````

For the groupby class, we can raise an error in case the groupby object instantiation does not specify values to be grouped by. In the case above:

``` ValueError: variable to groupby must not be empty

```

If you find such a solution acceptable, I would create a pull request.

Thank you in advance

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  groupby on empty DataArray raises StopIteration 459389883

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