issue_comments
23 rows where issue = 100295585 and user = 1217238 sorted by updated_at descending
This data as json, CSV (advanced)
Suggested facets: reactions, created_at (date), updated_at (date)
issue 1
- support for units · 23 ✖
id | html_url | issue_url | node_id | user | created_at | updated_at ▲ | author_association | body | reactions | performed_via_github_app | issue |
---|---|---|---|---|---|---|---|---|---|---|---|
531603838 | https://github.com/pydata/xarray/issues/525#issuecomment-531603838 | https://api.github.com/repos/pydata/xarray/issues/525 | MDEyOklzc3VlQ29tbWVudDUzMTYwMzgzOA== | shoyer 1217238 | 2019-09-15T22:13:31Z | 2019-09-15T22:13:31Z | MEMBER |
Yes, great idea! |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
support for units 100295585 | |
524572226 | https://github.com/pydata/xarray/issues/525#issuecomment-524572226 | https://api.github.com/repos/pydata/xarray/issues/525 | MDEyOklzc3VlQ29tbWVudDUyNDU3MjIyNg== | shoyer 1217238 | 2019-08-24T18:41:13Z | 2019-08-24T18:41:13Z | MEMBER | The other virtue of the separate package is a faster release cycle. We can (and should!) still put a full example in the xarray docs. For IO integration, I think the simplest choice would be to write utility functions for going to pint arrays from unit-free arrays with string “units” in attrs (and back). That will be easily composable with xarray’s existing IO functionality. |
{ "total_count": 2, "+1": 2, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
support for units 100295585 | |
524569964 | https://github.com/pydata/xarray/issues/525#issuecomment-524569964 | https://api.github.com/repos/pydata/xarray/issues/525 | MDEyOklzc3VlQ29tbWVudDUyNDU2OTk2NA== | shoyer 1217238 | 2019-08-24T18:03:24Z | 2019-08-24T18:03:24Z | MEMBER | That said, I agree that the dedicated accessor is a pretty good interface, especially if you want more methods/property than The accessor route is also definitely more conservative than putting first-class unit support in xarray proper, which I like. As for where to put it, that's sort of up to you. I think it's probably going to get complicated enough that it should into a library that can be installed, rather than being a boilerplate example in xarray's docs. It could be in xarray if it's going to be very minimal (e.g., only one method + one property) but if you want more than that -- and judging by pint-pandas I would guess you do -- then it should probably go into pint or a dedicated package, e.g., pint-xarray. I would not write a general purpose xarray+units library unless you're particularly excited about doing that for some reason -- it's much better to start with a particular integration that works well than to make a half-hearted effort at something general purpose without well-motivated use-cases. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
support for units 100295585 | |
524568953 | https://github.com/pydata/xarray/issues/525#issuecomment-524568953 | https://api.github.com/repos/pydata/xarray/issues/525 | MDEyOklzc3VlQ29tbWVudDUyNDU2ODk1Mw== | shoyer 1217238 | 2019-08-24T17:47:22Z | 2019-08-24T17:47:22Z | MEMBER |
I think the new property is still an option, even if we want to preserve accessing |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
support for units 100295585 | |
514880353 | https://github.com/pydata/xarray/issues/525#issuecomment-514880353 | https://api.github.com/repos/pydata/xarray/issues/525 | MDEyOklzc3VlQ29tbWVudDUxNDg4MDM1Mw== | shoyer 1217238 | 2019-07-25T03:25:47Z | 2019-08-24T05:02:39Z | MEMBER | I think we could do basic indexes with units after steps (1) and (2) in the big index refactor plan: https://github.com/pydata/xarray/issues/1603#issuecomment-511126208 At that point, indexes will be something that are propagated entirely separately from arrays. So even if the index will get cast into a pandas.index, the corresponding coordinate array will stick around. The next level of support would be "unit array indexing", e.g., |
{ "total_count": 3, "+1": 3, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
support for units 100295585 | |
524520588 | https://github.com/pydata/xarray/issues/525#issuecomment-524520588 | https://api.github.com/repos/pydata/xarray/issues/525 | MDEyOklzc3VlQ29tbWVudDUyNDUyMDU4OA== | shoyer 1217238 | 2019-08-24T05:01:54Z | 2019-08-24T05:01:54Z | MEMBER | For the general xarray method, I think we would probably want something like For the Dataset repr, it would probably be nice to print the units along with some of the array values. So yes, this could probably use some custom logic for recognizing quantity types, among other duck array types. If the number of distinct array types starts to get burdensomely large, we could expose an interface for registering new ones, e.g., For rolling out a new units attribute and/or IO integration, we will need to be careful to preserve backwards compatibility for now (at least with a warning). I’m sure there is lots of code that expects |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
support for units 100295585 | |
483814686 | https://github.com/pydata/xarray/issues/525#issuecomment-483814686 | https://api.github.com/repos/pydata/xarray/issues/525 | MDEyOklzc3VlQ29tbWVudDQ4MzgxNDY4Ng== | shoyer 1217238 | 2019-04-16T19:39:23Z | 2019-04-16T19:39:23Z | MEMBER |
Let me try to answer this more clearly: these are independent examples of the same problem. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
support for units 100295585 | |
483812516 | https://github.com/pydata/xarray/issues/525#issuecomment-483812516 | https://api.github.com/repos/pydata/xarray/issues/525 | MDEyOklzc3VlQ29tbWVudDQ4MzgxMjUxNg== | shoyer 1217238 | 2019-04-16T19:32:28Z | 2019-04-16T19:32:28Z | MEMBER | There's a whole section in NEP 13 about this: http://www.numpy.org/neps/nep-0013-ufunc-overrides.html#type-casting-hierarchy |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
support for units 100295585 | |
483812113 | https://github.com/pydata/xarray/issues/525#issuecomment-483812113 | https://api.github.com/repos/pydata/xarray/issues/525 | MDEyOklzc3VlQ29tbWVudDQ4MzgxMjExMw== | shoyer 1217238 | 2019-04-16T19:31:13Z | 2019-04-16T19:31:13Z | MEMBER |
|
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
support for units 100295585 | |
483803067 | https://github.com/pydata/xarray/issues/525#issuecomment-483803067 | https://api.github.com/repos/pydata/xarray/issues/525 | MDEyOklzc3VlQ29tbWVudDQ4MzgwMzA2Nw== | shoyer 1217238 | 2019-04-16T19:03:43Z | 2019-04-16T19:03:43Z | MEMBER | Another place to get started with this would be implementing |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
support for units 100295585 | |
483802699 | https://github.com/pydata/xarray/issues/525#issuecomment-483802699 | https://api.github.com/repos/pydata/xarray/issues/525 | MDEyOklzc3VlQ29tbWVudDQ4MzgwMjY5OQ== | shoyer 1217238 | 2019-04-16T19:02:37Z | 2019-04-16T19:02:37Z | MEMBER |
Unfortunately I don't think either dask or pint handle this properly right now. There is a protocol for Python's Dask and pint need some system -- either opt-in or opt-out -- for recognizing that they cannot handle operations with some argument types. |
{ "total_count": 1, "+1": 1, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
support for units 100295585 | |
482651181 | https://github.com/pydata/xarray/issues/525#issuecomment-482651181 | https://api.github.com/repos/pydata/xarray/issues/525 | MDEyOklzc3VlQ29tbWVudDQ4MjY1MTE4MQ== | shoyer 1217238 | 2019-04-12T17:09:10Z | 2019-04-12T17:09:10Z | MEMBER |
For what it's worth, I suspect the optimal wrapping order is: xarrays > pint > dask > numpy. This is because it's useful to get unit compatibility errors at "graph construction time" rather than "runtime". |
{ "total_count": 2, "+1": 2, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
support for units 100295585 | |
482650523 | https://github.com/pydata/xarray/issues/525#issuecomment-482650523 | https://api.github.com/repos/pydata/xarray/issues/525 | MDEyOklzc3VlQ29tbWVudDQ4MjY1MDUyMw== | shoyer 1217238 | 2019-04-12T17:06:49Z | 2019-04-12T17:06:49Z | MEMBER |
This would be a good issue to fix upstream, by resolving whether dask should wrap pint or pint should wrap dask :).
I don't think there's a huge barrier to entry here and I would encourage someone else to dive into this. We could start by adding an experimental flag to xarray to disable coercing everything to numpy arrays, and do some experiments to see what works. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
support for units 100295585 | |
482643387 | https://github.com/pydata/xarray/issues/525#issuecomment-482643387 | https://api.github.com/repos/pydata/xarray/issues/525 | MDEyOklzc3VlQ29tbWVudDQ4MjY0MzM4Nw== | shoyer 1217238 | 2019-04-12T16:44:16Z | 2019-04-12T16:44:16Z | MEMBER | (I just added a third bullet to my list above)
First, we'll need to wait for NumPy 1.17 to be released :). But more seriously, if we do a breaking release of xarray we can probably with bumping the required NumPy version significantly. It's definitely a smoother experience for users if we allow at least slightly older versions of NumPy (e.g., so they can use newer xarray with a version of NumPy pre-packaged with their system), but if keeping existing things working with the current version of NumPy is a pain, then it may be worth upgrading the minimum required version. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
support for units 100295585 | |
482641808 | https://github.com/pydata/xarray/issues/525#issuecomment-482641808 | https://api.github.com/repos/pydata/xarray/issues/525 | MDEyOklzc3VlQ29tbWVudDQ4MjY0MTgwOA== | shoyer 1217238 | 2019-04-12T16:39:13Z | 2019-04-12T16:40:47Z | MEMBER | Three things will need to change internally in xarray:
|
{ "total_count": 1, "+1": 1, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
support for units 100295585 | |
457871736 | https://github.com/pydata/xarray/issues/525#issuecomment-457871736 | https://api.github.com/repos/pydata/xarray/issues/525 | MDEyOklzc3VlQ29tbWVudDQ1Nzg3MTczNg== | shoyer 1217238 | 2019-01-26T22:35:19Z | 2019-01-26T22:35:26Z | MEMBER | This is still relevant. Hopefully the advent of |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
support for units 100295585 | |
248081325 | https://github.com/pydata/xarray/issues/525#issuecomment-248081325 | https://api.github.com/repos/pydata/xarray/issues/525 | MDEyOklzc3VlQ29tbWVudDI0ODA4MTMyNQ== | shoyer 1217238 | 2016-09-19T18:35:14Z | 2016-09-19T18:35:14Z | MEMBER | @burnpanck Take a look at the approach described in #988 and let me know if you think that sounds viable. NumPy subclasses inside xarray objects would probably mostly work, if we changed some internal uses of |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
support for units 100295585 | |
242937257 | https://github.com/pydata/xarray/issues/525#issuecomment-242937257 | https://api.github.com/repos/pydata/xarray/issues/525 | MDEyOklzc3VlQ29tbWVudDI0MjkzNzI1Nw== | shoyer 1217238 | 2016-08-27T19:50:22Z | 2016-08-27T19:50:22Z | MEMBER | 988 describes a possible approach for allowing third-party libraries to add units to xarray. It's not as comprehensive as a custom dtype, but might be enough to be useful. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
support for units 100295585 | |
182744774 | https://github.com/pydata/xarray/issues/525#issuecomment-182744774 | https://api.github.com/repos/pydata/xarray/issues/525 | MDEyOklzc3VlQ29tbWVudDE4Mjc0NDc3NA== | shoyer 1217238 | 2016-02-11T07:19:19Z | 2016-02-11T07:19:19Z | MEMBER | If anyone is excited about working on the NumPy improvement we need to make this more feasible (namely, custom dtypes and duck typing) at BIDS, you should talk to @njsmith. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
support for units 100295585 | |
181938629 | https://github.com/pydata/xarray/issues/525#issuecomment-181938629 | https://api.github.com/repos/pydata/xarray/issues/525 | MDEyOklzc3VlQ29tbWVudDE4MTkzODYyOQ== | shoyer 1217238 | 2016-02-09T16:21:27Z | 2016-02-09T16:21:27Z | MEMBER | @hgrecco Are you suggesting that pint could wrap xarray objects, or that xarray could wrap pint? Either is certainly possible, though I'm a bit pessimistic that we can come up with a complete solution without the numpy fixes we've been discussing. Also, just to note, xarray contains a |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
support for units 100295585 | |
141853078 | https://github.com/pydata/xarray/issues/525#issuecomment-141853078 | https://api.github.com/repos/pydata/xarray/issues/525 | MDEyOklzc3VlQ29tbWVudDE0MTg1MzA3OA== | shoyer 1217238 | 2015-09-21T01:28:18Z | 2016-02-09T16:16:38Z | MEMBER | @mhvk It would certainly be possible to extend dask.array to handle units, in either of the ways you suggest. Although you could allow So far, so good -- but with the current state of duck array typing in NumPy, it's really hard to be happy with this. Until Once we have all that duck-array stuff, then yes, you certainly could write all a duck-array |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
support for units 100295585 | |
131876284 | https://github.com/pydata/xarray/issues/525#issuecomment-131876284 | https://api.github.com/repos/pydata/xarray/issues/525 | MDEyOklzc3VlQ29tbWVudDEzMTg3NjI4NA== | shoyer 1217238 | 2015-08-17T16:14:56Z | 2015-08-17T16:14:56Z | MEMBER | Unfortunately, the astropy approach uses a numpy.ndarray subclass, which means it's mutually exclusive with dask.array. Otherwise, it does look very nice, though. On Mon, Aug 17, 2015 at 8:38 AM, Ryan Abernathey notifications@github.com wrote:
|
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
support for units 100295585 | |
130134807 | https://github.com/pydata/xarray/issues/525#issuecomment-130134807 | https://api.github.com/repos/pydata/xarray/issues/525 | MDEyOklzc3VlQ29tbWVudDEzMDEzNDgwNw== | shoyer 1217238 | 2015-08-12T02:01:01Z | 2015-08-12T02:01:01Z | MEMBER | Eventually, I hope so! Unfortunately, doing this in a feasible and maintainable way will probably require upstream fixes in NumPy. In particular, better support for duck-array types (https://github.com/numpy/numpy/issues/4164) and/or the ability to write units as a custom NumPy dtypes. Both of these are on the NumPy roadmap, though they don't have a timeframe for when that will happen. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
support for units 100295585 |
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 1