home / github

Menu
  • Search all tables
  • GraphQL API

issue_comments

Table actions
  • GraphQL API for issue_comments

7 rows where author_association = "NONE", issue = 129286220 and user = 15167171 sorted by updated_at descending

✎ View and edit SQL

This data as json, CSV (advanced)

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

user 1

  • deanpospisil · 7 ✖

issue 1

  • Add tensordot to dataarray class also add its test to test_dataarray · 7 ✖

author_association 1

  • NONE · 7 ✖
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions performed_via_github_app issue
192107773 https://github.com/pydata/xarray/pull/731#issuecomment-192107773 https://api.github.com/repos/pydata/xarray/issues/731 MDEyOklzc3VlQ29tbWVudDE5MjEwNzc3Mw== deanpospisil 15167171 2016-03-04T05:09:54Z 2016-03-04T05:09:54Z NONE

Alright, I think it's ready!

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Add tensordot to dataarray class also add its test to test_dataarray 129286220
189476736 https://github.com/pydata/xarray/pull/731#issuecomment-189476736 https://api.github.com/repos/pydata/xarray/issues/731 MDEyOklzc3VlQ29tbWVudDE4OTQ3NjczNg== deanpospisil 15167171 2016-02-26T20:44:05Z 2016-02-26T20:44:05Z NONE

Ready for review.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Add tensordot to dataarray class also add its test to test_dataarray 129286220
183784767 https://github.com/pydata/xarray/pull/731#issuecomment-183784767 https://api.github.com/repos/pydata/xarray/issues/731 MDEyOklzc3VlQ29tbWVudDE4Mzc4NDc2Nw== deanpospisil 15167171 2016-02-14T01:15:49Z 2016-02-14T01:15:49Z NONE

Alright I think I got rebase to work, apologies for the delay. There were some comments I wasn't sure about how to integrate, I asked about them, but I figured the best way to keep moving forward was to push my best guess at what you meant. So we might need to go through one more round of comments. Thanks for being patient!

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Add tensordot to dataarray class also add its test to test_dataarray 129286220
178379984 https://github.com/pydata/xarray/pull/731#issuecomment-178379984 https://api.github.com/repos/pydata/xarray/issues/731 MDEyOklzc3VlQ29tbWVudDE3ODM3OTk4NA== deanpospisil 15167171 2016-02-02T05:12:33Z 2016-02-02T05:12:33Z NONE

Thanks! Good comments, should help with my next pull request. : )

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Add tensordot to dataarray class also add its test to test_dataarray 129286220
176955192 https://github.com/pydata/xarray/pull/731#issuecomment-176955192 https://api.github.com/repos/pydata/xarray/issues/731 MDEyOklzc3VlQ29tbWVudDE3Njk1NTE5Mg== deanpospisil 15167171 2016-01-29T20:29:15Z 2016-01-29T20:29:15Z NONE

That said, this is difficult to implement with numpy's dot/tensordot, so perhaps it's better to simply error or omit the dims argument entirely for now. Eventually, we might be able to do this using @/np.matmul (only in numpy 1.10 and newer).

Yeah I'm going to go for omitting the dims entirely for now, I think it makes the function easy to call, and really covers what I imagine most people would use the function for, getting the relationship between two DataArrays along their common dimensions. Thats all I'm going to use it for.

I also wonder if perhaps we should rename this from tensordot to simply dot. I don't think we would want to use dot for anything else, and it might also be nice to support @ syntax as an alias for this in Python 3 (again, at some later point).

Yeah that makes sense. tensordot in xarray seems like it would be the function that allows more flexibility in how a sum product is applied, dot can be thought of as a reduced version of tensordot taking no dims argument.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Add tensordot to dataarray class also add its test to test_dataarray 129286220
176571428 https://github.com/pydata/xarray/pull/731#issuecomment-176571428 https://api.github.com/repos/pydata/xarray/issues/731 MDEyOklzc3VlQ29tbWVudDE3NjU3MTQyOA== deanpospisil 15167171 2016-01-29T04:44:25Z 2016-01-29T04:45:45Z NONE

I've implemented all your comments, except: 1. In the dask test I'm having a little trouble with: self.assertLazyAndAllClose(eager, lazy) working with the DataArrays I make. Does it only take transformations of:

self.eager_array self.lazy_array

2 Your comment: Use the genetic type(self) instead Which I didn't understand.

3 Need to figure out how to edit the docs.

And I was thinking: The default (when no dims arg is given) should be to tensordot over all shared dims between DataArrays. And it should prevent you from not summing over all shared dims, since that will return a DataArray with repeated labels. I think it would be rare for people to want to tensor dot over different dimensions.

Thanks for all your help getting me going!

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Add tensordot to dataarray class also add its test to test_dataarray 129286220
175905067 https://github.com/pydata/xarray/pull/731#issuecomment-175905067 https://api.github.com/repos/pydata/xarray/issues/731 MDEyOklzc3VlQ29tbWVudDE3NTkwNTA2Nw== deanpospisil 15167171 2016-01-27T23:07:37Z 2016-01-27T23:07:37Z NONE

It seems in both unsuccesful cases it was trying to import dask and failed, I can't quite figure out what I could have changed to prevent dask from importing:

```

  da = da.chunk()

xarray/test/test_dataarray.py:1618:


xarray/core/dataarray.py:569: in chunk ds = self._to_temp_dataset().chunk(chunks) ```

``` try: from dask.base import tokenize except ImportError:

      import dask  # raise the usual error if dask is entirely missing

E ImportError: No module named 'dask' ```

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Add tensordot to dataarray class also add its test to test_dataarray 129286220

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