home / github

Menu
  • GraphQL API
  • Search all tables

issue_comments

Table actions
  • GraphQL API for issue_comments

7 rows where issue = 148903579 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

  • mcgibbon 3
  • shoyer 2
  • max-sixty 2

author_association 2

  • MEMBER 4
  • CONTRIBUTOR 3

issue 1

  • keep_attrs for Dataset.resample and DataArray.resample · 7 ✖
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions performed_via_github_app issue
211996971 https://github.com/pydata/xarray/pull/829#issuecomment-211996971 https://api.github.com/repos/pydata/xarray/issues/829 MDEyOklzc3VlQ29tbWVudDIxMTk5Njk3MQ== shoyer 1217238 2016-04-19T16:06:03Z 2016-04-19T16:06:03Z MEMBER

@mcgibbon thanks.

I agree that there is a careful balance when writing test methods between maintainability and readability.

I do think fixtures that can be helpful, but we definitely do over-use them right now with our giant test cases -- those should really be cleaned up and split up. I just haven't had the energy to get around to that.

{
    "total_count": 1,
    "+1": 1,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  keep_attrs for Dataset.resample and DataArray.resample 148903579
211630275 https://github.com/pydata/xarray/pull/829#issuecomment-211630275 https://api.github.com/repos/pydata/xarray/issues/829 MDEyOklzc3VlQ29tbWVudDIxMTYzMDI3NQ== mcgibbon 12307589 2016-04-18T23:31:26Z 2016-04-18T23:31:26Z CONTRIBUTOR

Appveyor build failed for some reason when trying to set up Miniconda on Windows 32-bit with Python 2.7. The 64-bit build of Python 3.4 passed.

Downloading Miniconda-3.7.3-Windows-x86.exe from http://repo.continuum.io/miniconda/Miniconda-3.7.3-Windows-x86.exe File saved at C:\projects\xray\Miniconda-3.7.3-Windows-x86.exe Installing C:\projects\xray\Miniconda-3.7.3-Windows-x86.exe to C:\Python27-conda32 C:\projects\xray\Miniconda-3.7.3-Windows-x86.exe /S /D=C:\Python27-conda32 Start-Process : This command cannot be run due to the error: The specified executable is not a valid application for this OS platform..

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  keep_attrs for Dataset.resample and DataArray.resample 148903579
211541244 https://github.com/pydata/xarray/pull/829#issuecomment-211541244 https://api.github.com/repos/pydata/xarray/issues/829 MDEyOklzc3VlQ29tbWVudDIxMTU0MTI0NA== mcgibbon 12307589 2016-04-18T19:27:27Z 2016-04-18T19:27:27Z CONTRIBUTOR

@shoyer I've done the clean-ups you suggested, apart from for-looping tests for the reasons I mentioned in the line note. I hope my "what's new" additions are appropriate.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  keep_attrs for Dataset.resample and DataArray.resample 148903579
211506678 https://github.com/pydata/xarray/pull/829#issuecomment-211506678 https://api.github.com/repos/pydata/xarray/issues/829 MDEyOklzc3VlQ29tbWVudDIxMTUwNjY3OA== max-sixty 5635139 2016-04-18T18:08:09Z 2016-04-18T18:08:09Z MEMBER

@mcgibbon That makes sense to me

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  keep_attrs for Dataset.resample and DataArray.resample 148903579
210955565 https://github.com/pydata/xarray/pull/829#issuecomment-210955565 https://api.github.com/repos/pydata/xarray/issues/829 MDEyOklzc3VlQ29tbWVudDIxMDk1NTU2NQ== mcgibbon 12307589 2016-04-17T04:45:53Z 2016-04-17T04:46:16Z CONTRIBUTOR

The idea is that if a dataset has an attribute, it is making a claim about that data. xarray can't guarantee that claims the attributes make about the data remain valid after operating on that data, so it shouldn't retain those attributes unless the user says it can.

I may have ceilometer data that tells me whether a cloud base is detected at any point in time, with an attribute saying that 0 means no cloud detected, another attribute saying that 1 means cloud detected, and another saying that nan means some kind of error. If I resample that data using a mean or median, those attributes are no longer valid.

Or my Dataset may have an attribute saying that it was output by a certain instrument. If I save that Dataset after doing some analysis, it may give the impression to someone reading the netCDF that they're reading unprocessed instrument data, when they aren't.

Or I may want the hourly variance of a dataset, and do dataset.resample('1H', how='var'). In this case, the units are no longer valid.

It may seem like these are edge cases, but it's better to make no claims most of the time than to make bad claims some of the time.

{
    "total_count": 2,
    "+1": 2,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  keep_attrs for Dataset.resample and DataArray.resample 148903579
210955296 https://github.com/pydata/xarray/pull/829#issuecomment-210955296 https://api.github.com/repos/pydata/xarray/issues/829 MDEyOklzc3VlQ29tbWVudDIxMDk1NTI5Ng== max-sixty 5635139 2016-04-17T04:34:52Z 2016-04-17T04:34:52Z MEMBER

I know I'm late to the party here. Are there many cases where keep_attrs would be expected to be False? I would have thought that it's generally expected that attrs would stick around when doing operations, either as a default or without an option to drop them. (Of course, it's easy to drop them if a user explicitly sets them to {} in a separate operation)

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  keep_attrs for Dataset.resample and DataArray.resample 148903579
210939902 https://github.com/pydata/xarray/pull/829#issuecomment-210939902 https://api.github.com/repos/pydata/xarray/issues/829 MDEyOklzc3VlQ29tbWVudDIxMDkzOTkwMg== shoyer 1217238 2016-04-17T02:20:46Z 2016-04-17T02:20:46Z MEMBER

Thanks for diving into this!

I think you can write the tests a little bit more succinctly, but otherwise this looks good. Also, please add a note to the "What's New" giving yourself credit.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  keep_attrs for Dataset.resample and DataArray.resample 148903579

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 25.153ms · About: xarray-datasette
  • Sort ascending
  • Sort descending
  • Facet by this
  • Hide this column
  • Show all columns
  • Show not-blank rows