issue_comments
9 rows where issue = 325810810 sorted by updated_at descending
This data as json, CSV (advanced)
Suggested facets: created_at (date), updated_at (date)
issue 1
- Advice on unit-aware arithmetic · 9 ✖
id | html_url | issue_url | node_id | user | created_at | updated_at ▲ | author_association | body | reactions | performed_via_github_app | issue |
---|---|---|---|---|---|---|---|---|---|---|---|
392138523 | https://github.com/pydata/xarray/issues/2176#issuecomment-392138523 | https://api.github.com/repos/pydata/xarray/issues/2176 | MDEyOklzc3VlQ29tbWVudDM5MjEzODUyMw== | mcgibbon 12307589 | 2018-05-25T18:11:55Z | 2018-05-25T18:11:55Z | CONTRIBUTOR | Thank you for the input everyone, this discussion has been very useful! Closing this issue. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Advice on unit-aware arithmetic 325810810 | |
391800114 | https://github.com/pydata/xarray/issues/2176#issuecomment-391800114 | https://api.github.com/repos/pydata/xarray/issues/2176 | MDEyOklzc3VlQ29tbWVudDM5MTgwMDExNA== | mcgibbon 12307589 | 2018-05-24T17:41:27Z | 2018-05-24T17:41:27Z | CONTRIBUTOR | @dopplershift That's a good point. It's pretty trivial to create a In
|
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Advice on unit-aware arithmetic 325810810 | |
391783509 | https://github.com/pydata/xarray/issues/2176#issuecomment-391783509 | https://api.github.com/repos/pydata/xarray/issues/2176 | MDEyOklzc3VlQ29tbWVudDM5MTc4MzUwOQ== | dopplershift 221526 | 2018-05-24T16:47:20Z | 2018-05-24T16:47:20Z | CONTRIBUTOR | My problem with custom classes (subclasses or composition) is that you will never get those from a I’m also looking at moving from pint to unyt, which is Yt’s unit support, brought into a standalone package. Beyond some performance benefits (I’ve heard), it has the benefit of being a ndarray subclass, which means |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Advice on unit-aware arithmetic 325810810 | |
391596424 | https://github.com/pydata/xarray/issues/2176#issuecomment-391596424 | https://api.github.com/repos/pydata/xarray/issues/2176 | MDEyOklzc3VlQ29tbWVudDM5MTU5NjQyNA== | kmpaul 11411331 | 2018-05-24T05:50:26Z | 2018-05-24T05:50:26Z | CONTRIBUTOR | Well, I'm certainly not trying to argue that the I understand your concerns about I personally think it's fine to discuss this here, unless other people would like to see this go offline. To address some of your issues:
Yes. I agree. In fact, my first implementation was a subclass of
I personally didn't see much of a benefit to a check like
As I mentioned in my post, this is just my personal preference. I think that calendared time units are...well...just units, and that the same mechanism for dealing with all other units should deal with calendared time units. It's just an aesthetic that I prefer. (That said, I'm extremely happy that someone finally dealt with non-standard calendars with
The CF Conventions define the In the end, I'm happy doing whatever the community wants with this code. I can pull it out into it's own repo (along with the unit tests, which are also in the PyConform repo). And then, after that, I have no problem with people taking it in a different direction (e.g., using |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Advice on unit-aware arithmetic 325810810 | |
391542922 | https://github.com/pydata/xarray/issues/2176#issuecomment-391542922 | https://api.github.com/repos/pydata/xarray/issues/2176 | MDEyOklzc3VlQ29tbWVudDM5MTU0MjkyMg== | mcgibbon 12307589 | 2018-05-24T00:10:29Z | 2018-05-24T00:10:29Z | CONTRIBUTOR | @shoyer that notation might work, thanks for pointing it out! Maybe we can think of a more natural name for the accessor ("with_units"? "keep_units"? "uarray"? "u"?). I find the "storage" of units as a string in attrs to be much cleaner than any other implementation I've seen so far (like implementations that have a unit container over an underlying array, or an array of unit-aware objects). It has the added benefit that this is how units are conventionally stored in netCDF files. I don't think it's necessary to use a class other than ndarray for data storage. @kmpaul the main reason I stayed away from It may make sense for us to use some kind of stand-alone unit-aware DataArray implementation. I'd just need to be convinced that yours is well-designed, thoroughly tested, and easy to install with pip. The main things concerning me about |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Advice on unit-aware arithmetic 325810810 | |
391481382 | https://github.com/pydata/xarray/issues/2176#issuecomment-391481382 | https://api.github.com/repos/pydata/xarray/issues/2176 | MDEyOklzc3VlQ29tbWVudDM5MTQ4MTM4Mg== | shoyer 1217238 | 2018-05-23T20:14:26Z | 2018-05-23T20:14:26Z | MEMBER | If you implement arithmetic special methods like Subclassing or writing a DataArray wrapper like what @kmpaul did in physarrays seems like the cleanest way to do this currently. The main challenge is to avoid relying on non-public parts of the DataArray API, but I think overwriting arithmetic would be pretty safe. In the long term, I think the best solution here is probably an extensible interface for |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Advice on unit-aware arithmetic 325810810 | |
391470885 | https://github.com/pydata/xarray/issues/2176#issuecomment-391470885 | https://api.github.com/repos/pydata/xarray/issues/2176 | MDEyOklzc3VlQ29tbWVudDM5MTQ3MDg4NQ== | kmpaul 11411331 | 2018-05-23T19:37:26Z | 2018-05-23T19:37:26Z | CONTRIBUTOR | Thanks, @jhamman, for the reference. I have, indeed, been thinking about this a lot. I've hit the same problem that you have @mcgibbon and came to the same conclusion that subclassing was the only way to go. I'm not sure I'm happy with my solution, but I wrote a (partial) implementation of a DataArray subclass to deal with units. @jhamman suggested that I pull this out into a separate repo, and I hope to do that one day... However, if you are curious, now, you can view it here: https://github.com/NCAR/PyConform/tree/rewrite/source/pyconform/physarrays Note that this implementation deals with time as just another unit, rather than requiring any special dealing with time. This works if you units package can deal with calendared times, too. I am currently using Also, note that this implementation also deals with the Let me know what you think about this. If it's a priority, I can pull this out into its own repository. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Advice on unit-aware arithmetic 325810810 | |
391443258 | https://github.com/pydata/xarray/issues/2176#issuecomment-391443258 | https://api.github.com/repos/pydata/xarray/issues/2176 | MDEyOklzc3VlQ29tbWVudDM5MTQ0MzI1OA== | mcgibbon 12307589 | 2018-05-23T18:03:27Z | 2018-05-23T18:03:27Z | CONTRIBUTOR | For reference, here are some of the sort of methods I've been adding that aren't currently in
|
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Advice on unit-aware arithmetic 325810810 | |
391441974 | https://github.com/pydata/xarray/issues/2176#issuecomment-391441974 | https://api.github.com/repos/pydata/xarray/issues/2176 | MDEyOklzc3VlQ29tbWVudDM5MTQ0MTk3NA== | jhamman 2443309 | 2018-05-23T17:59:32Z | 2018-05-23T17:59:32Z | MEMBER | cc @KMPaul who has also been working on this sort of thing recently. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Advice on unit-aware arithmetic 325810810 |
Advanced export
JSON shape: default, array, newline-delimited, object
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]);
user 5