home / github

Menu
  • GraphQL API
  • Search all tables

issue_comments

Table actions
  • GraphQL API for issue_comments

10 rows where issue = 225672435 sorted by updated_at descending

✎ View and edit SQL

This data as json, CSV (advanced)

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

user 2

  • gidden 6
  • shoyer 4

author_association 2

  • CONTRIBUTOR 6
  • MEMBER 4

issue 1

  • dl tutorial files to tmp directory, then move them once successful · 10 ✖
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions performed_via_github_app issue
302955973 https://github.com/pydata/xarray/pull/1393#issuecomment-302955973 https://api.github.com/repos/pydata/xarray/issues/1393 MDEyOklzc3VlQ29tbWVudDMwMjk1NTk3Mw== shoyer 1217238 2017-05-21T19:04:26Z 2017-05-21T19:04:26Z MEMBER

thanks!

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  dl tutorial files to tmp directory, then move them once successful 225672435
302943350 https://github.com/pydata/xarray/pull/1393#issuecomment-302943350 https://api.github.com/repos/pydata/xarray/issues/1393 MDEyOklzc3VlQ29tbWVudDMwMjk0MzM1MA== gidden 1392657 2017-05-21T15:22:07Z 2017-05-21T15:22:07Z CONTRIBUTOR

hey @shoyer, @fmaussion. test decorator added with tutorial dataset unit test. i think this is good to go.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  dl tutorial files to tmp directory, then move them once successful 225672435
298969483 https://github.com/pydata/xarray/pull/1393#issuecomment-298969483 https://api.github.com/repos/pydata/xarray/issues/1393 MDEyOklzc3VlQ29tbWVudDI5ODk2OTQ4Mw== gidden 1392657 2017-05-03T16:50:17Z 2017-05-03T16:50:17Z CONTRIBUTOR

Hey @shoyer, if I have time later I will try to address the unit test issue. If I'm too late, feel free to pull this in the meantime.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  dl tutorial files to tmp directory, then move them once successful 225672435
298966173 https://github.com/pydata/xarray/pull/1393#issuecomment-298966173 https://api.github.com/repos/pydata/xarray/issues/1393 MDEyOklzc3VlQ29tbWVudDI5ODk2NjE3Mw== shoyer 1217238 2017-05-03T16:38:02Z 2017-05-03T16:38:02Z MEMBER

I'd be slightly more comfortable if we had this being unit tested on Travis-CI, but that's somewhat tricky to setup because we don't wan to require network access for the test suite by default. You could do this by adding a flag like --run-network-tests in conftest.py, and then hooking it through in xarray/tests/__init__.py like --run-flaky. I would be awesome if you could take a look at that and set the Travis/Appveyor tests to test the tutorial, but isn't strictly required to merge this.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  dl tutorial files to tmp directory, then move them once successful 225672435
298964022 https://github.com/pydata/xarray/pull/1393#issuecomment-298964022 https://api.github.com/repos/pydata/xarray/issues/1393 MDEyOklzc3VlQ29tbWVudDI5ODk2NDAyMg== shoyer 1217238 2017-05-03T16:30:01Z 2017-05-03T16:30:01Z MEMBER

Thanks @gidden, this look great to me. Could you kindly add a brief note to the "Bug fixes" section of whats-new.rst?

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  dl tutorial files to tmp directory, then move them once successful 225672435
298942200 https://github.com/pydata/xarray/pull/1393#issuecomment-298942200 https://api.github.com/repos/pydata/xarray/issues/1393 MDEyOklzc3VlQ29tbWVudDI5ODk0MjIwMA== gidden 1392657 2017-05-03T15:15:15Z 2017-05-03T15:15:15Z CONTRIBUTOR

ok, this should be good to go

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  dl tutorial files to tmp directory, then move them once successful 225672435
298755199 https://github.com/pydata/xarray/pull/1393#issuecomment-298755199 https://api.github.com/repos/pydata/xarray/issues/1393 MDEyOklzc3VlQ29tbWVudDI5ODc1NTE5OQ== gidden 1392657 2017-05-02T20:43:18Z 2017-05-02T20:43:18Z CONTRIBUTOR

Ok, sounds good. shutil was no longer needed, but the md5 checksum was implemented as private. So I think all is well.

On Tue, May 2, 2017 at 2:32 PM, Stephan Hoyer notifications@github.com wrote:

Thanks for taking this on @gidden https://github.com/gidden.

Also not sure how best to import shutil. I followed the current pattern for os, but am not sure why that pattern exists in this file.

I think this exists to work around the fact that IPython shows everything that isn't private in auto-complete (ipython/ipykernel#129 https://github.com/ipython/ipykernel/issues/129). But we should probably switch back to normal imports in this module -- this is really more of an IPython issue.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/pydata/xarray/pull/1393#issuecomment-298737305, or mute the thread https://github.com/notifications/unsubscribe-auth/ABVAEW5GuD6D_Y4ANjqM5AnK54h5BRZtks5r14TCgaJpZM4NOCuy .

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  dl tutorial files to tmp directory, then move them once successful 225672435
298737305 https://github.com/pydata/xarray/pull/1393#issuecomment-298737305 https://api.github.com/repos/pydata/xarray/issues/1393 MDEyOklzc3VlQ29tbWVudDI5ODczNzMwNQ== shoyer 1217238 2017-05-02T19:32:16Z 2017-05-02T19:32:16Z MEMBER

Thanks for taking this on @gidden.

Also not sure how best to import shutil. I followed the current pattern for os, but am not sure why that pattern exists in this file.

I think this exists to work around the fact that IPython shows everything that isn't private in auto-complete (https://github.com/ipython/ipykernel/issues/129). But we should probably switch back to normal imports in this module -- this is really more of an IPython issue.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  dl tutorial files to tmp directory, then move them once successful 225672435
298714845 https://github.com/pydata/xarray/pull/1393#issuecomment-298714845 https://api.github.com/repos/pydata/xarray/issues/1393 MDEyOklzc3VlQ29tbWVudDI5ODcxNDg0NQ== gidden 1392657 2017-05-02T18:07:57Z 2017-05-02T18:07:57Z CONTRIBUTOR

Successful locally with pydata/xarray-data#9:

In [3]: xr.tutorial.load_dataset('air_temperature', github_url='https://github.com/gidden/xarray-data', branch='md5') Out[3]: <xarray.Dataset> Dimensions: (lat: 25, lon: 53, time: 2920) Coordinates: * lat (lat) float32 75.0 72.5 70.0 67.5 65.0 62.5 60.0 57.5 55.0 52.5 ... * lon (lon) float32 200.0 202.5 205.0 207.5 210.0 212.5 215.0 217.5 ... * time (time) datetime64[ns] 2013-01-01 2013-01-01T06:00:00 ... Data variables: air (time, lat, lon) float64 241.2 242.5 243.5 244.0 244.1 243.9 ... Attributes: Conventions: COARDS title: 4x daily NMC reanalysis (1948) description: Data is from NMC initialized reanalysis\n(4x/day). These a... platform: Model references: http://www.esrl.noaa.gov/psd/data/gridded/data.ncep.reanaly...

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  dl tutorial files to tmp directory, then move them once successful 225672435
298705664 https://github.com/pydata/xarray/pull/1393#issuecomment-298705664 https://api.github.com/repos/pydata/xarray/issues/1393 MDEyOklzc3VlQ29tbWVudDI5ODcwNTY2NA== gidden 1392657 2017-05-02T17:34:06Z 2017-05-02T17:34:06Z CONTRIBUTOR

It seems like urlretrieve is coming directly from urllib. It seems in both Python 2 and 3 ContentTooShort error should be thrown and isnt. Perhaps checksums are the right way to go.

On Tue, May 2, 2017 at 7:14 PM, Fabien Maussion notifications@github.com wrote:

@fmaussion commented on this pull request.

In xarray/tutorial.py https://github.com/pydata/xarray/pull/1393#discussion_r114372912:

     url = '/'.join((github_url, 'raw', 'master', fullname))
  • _urlretrieve(url, localfile)
  • _urlretrieve(url, tmpfile) +
  • if not _os.path.exists(tmpfile):
  • raise ValueError('File could not be downloaded, please try again') +
  • _shutil.move(tmpfile, localfile)

I thought that the issue wasn't that the file isn't downloaded, but rather that it is incompletely downloaded? Will this new temporary step than solve this?

Is there a way to make urlretrieve more robust, with checksums or something?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/pydata/xarray/pull/1393#pullrequestreview-35833283, or mute the thread https://github.com/notifications/unsubscribe-auth/ABVAEVQ4rFwcddY-kEOYnaEaLHsxf_u9ks5r12RkgaJpZM4NOCuy .

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  dl tutorial files to tmp directory, then move them once successful 225672435

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