issue_comments
41 rows where user = 45787861 sorted by updated_at descending
This data as json, CSV (advanced)
Suggested facets: issue_url, reactions, created_at (date), updated_at (date)
user 1
- r-beer · 41 ✖
id | html_url | issue_url | node_id | user | created_at | updated_at ▲ | author_association | body | reactions | performed_via_github_app | issue |
---|---|---|---|---|---|---|---|---|---|---|---|
557895005 | https://github.com/pydata/xarray/pull/3550#issuecomment-557895005 | https://api.github.com/repos/pydata/xarray/issues/3550 | MDEyOklzc3VlQ29tbWVudDU1Nzg5NTAwNQ== | r-beer 45787861 | 2019-11-24T14:41:44Z | 2019-11-24T14:41:44Z | NONE | I have added several test cases, almost all pass. The ones that don't pass are related to I had a look at
I actually prefer the numpy behavior, resulting in covariance and correlation matrices. However I feel that efficient implementation of this behavior is above my current understanding of xarray. So, I would highly appreciate your support on this implementation! Otherwise, I added the |
{ "total_count": 1, "+1": 1, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
cov() and corr() - finalization 525685973 | |
557874527 | https://github.com/pydata/xarray/pull/3550#issuecomment-557874527 | https://api.github.com/repos/pydata/xarray/issues/3550 | MDEyOklzc3VlQ29tbWVudDU1Nzg3NDUyNw== | r-beer 45787861 | 2019-11-24T10:11:31Z | 2019-11-24T10:15:19Z | NONE |
On the one side, I am with you in terms of "What You Put In Is What You Get Out", on the other hand


So for the moment, we might stick with |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
cov() and corr() - finalization 525685973 | |
557872510 | https://github.com/pydata/xarray/pull/3550#issuecomment-557872510 | https://api.github.com/repos/pydata/xarray/issues/3550 | MDEyOklzc3VlQ29tbWVudDU1Nzg3MjUxMA== | r-beer 45787861 | 2019-11-24T09:39:30Z | 2019-11-24T09:39:30Z | NONE |
Alright! I found myself having very similar tests and therefore abstracted it to test_func. I completely agree with not abstracting too early and but when having the same structure several times. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
cov() and corr() - finalization 525685973 | |
557829302 | https://github.com/pydata/xarray/pull/3550#issuecomment-557829302 | https://api.github.com/repos/pydata/xarray/issues/3550 | MDEyOklzc3VlQ29tbWVudDU1NzgyOTMwMg== | r-beer 45787861 | 2019-11-23T20:13:45Z | 2019-11-23T20:13:45Z | NONE |
Maybe, as a first step some type checking would be enough, to identify such special cases as the one above and give a |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
cov() and corr() - finalization 525685973 | |
557828920 | https://github.com/pydata/xarray/pull/3550#issuecomment-557828920 | https://api.github.com/repos/pydata/xarray/issues/3550 | MDEyOklzc3VlQ29tbWVudDU1NzgyODkyMA== | r-beer 45787861 | 2019-11-23T20:07:56Z | 2019-11-23T20:08:11Z | NONE |
Yes, I will add it. Thinking about test arrays in general:
Wouldn't it be good to define some data array fixtures in the In view of the additional test I started to restructure the Any guidelines or suggestions? Either way, it would be good to have a clear list of |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
cov() and corr() - finalization 525685973 | |
557812486 | https://github.com/pydata/xarray/pull/3550#issuecomment-557812486 | https://api.github.com/repos/pydata/xarray/issues/3550 | MDEyOklzc3VlQ29tbWVudDU1NzgxMjQ4Ng== | r-beer 45787861 | 2019-11-23T16:33:58Z | 2019-11-23T16:34:39Z | NONE | Turns out the
|
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
cov() and corr() - finalization 525685973 | |
557790321 | https://github.com/pydata/xarray/pull/3550#issuecomment-557790321 | https://api.github.com/repos/pydata/xarray/issues/3550 | MDEyOklzc3VlQ29tbWVudDU1Nzc5MDMyMQ== | r-beer 45787861 | 2019-11-23T11:34:12Z | 2019-11-23T11:34:12Z | NONE |
Further PRs:
|
{ "total_count": 1, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 1, "rocket": 0, "eyes": 0 } |
cov() and corr() - finalization 525685973 | |
557787104 | https://github.com/pydata/xarray/pull/3550#issuecomment-557787104 | https://api.github.com/repos/pydata/xarray/issues/3550 | MDEyOklzc3VlQ29tbWVudDU1Nzc4NzEwNA== | r-beer 45787861 | 2019-11-23T10:45:17Z | 2019-11-23T10:45:17Z | NONE | @dcherian, @max-sixty, @keewis, @Hoeze, second try: any more improvements required? |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
cov() and corr() - finalization 525685973 | |
557781732 | https://github.com/pydata/xarray/pull/3550#issuecomment-557781732 | https://api.github.com/repos/pydata/xarray/issues/3550 | MDEyOklzc3VlQ29tbWVudDU1Nzc4MTczMg== | r-beer 45787861 | 2019-11-23T09:23:46Z | 2019-11-23T09:23:46Z | NONE |
Now, I additionally get errors from pre-commit claiming that Guess, the pre-commit installation was not completely correct? |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
cov() and corr() - finalization 525685973 | |
557777317 | https://github.com/pydata/xarray/pull/3550#issuecomment-557777317 | https://api.github.com/repos/pydata/xarray/issues/3550 | MDEyOklzc3VlQ29tbWVudDU1Nzc3NzMxNw== | r-beer 45787861 | 2019-11-23T08:08:44Z | 2019-11-23T08:08:44Z | NONE |
|
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
cov() and corr() - finalization 525685973 | |
557706382 | https://github.com/pydata/xarray/pull/3550#issuecomment-557706382 | https://api.github.com/repos/pydata/xarray/issues/3550 | MDEyOklzc3VlQ29tbWVudDU1NzcwNjM4Mg== | r-beer 45787861 | 2019-11-22T21:46:25Z | 2019-11-22T21:46:25Z | NONE | PS: I personally would like to use cov and corr also with dask. Does it also make sense to put this in a future PR, together with the above-mentioned other improvements? Further PRs:
- Add
|
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
cov() and corr() - finalization 525685973 | |
557701008 | https://github.com/pydata/xarray/pull/3550#issuecomment-557701008 | https://api.github.com/repos/pydata/xarray/issues/3550 | MDEyOklzc3VlQ29tbWVudDU1NzcwMTAwOA== | r-beer 45787861 | 2019-11-22T21:27:59Z | 2019-11-22T21:27:59Z | NONE | @dcherian, @max-sixty, @keewis, @Hoeze, this is it, is it? Let me know if there are some adjustments to be made. 🙂 And I still get |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
cov() and corr() - finalization 525685973 | |
557085576 | https://github.com/pydata/xarray/pull/3550#issuecomment-557085576 | https://api.github.com/repos/pydata/xarray/issues/3550 | MDEyOklzc3VlQ29tbWVudDU1NzA4NTU3Ng== | r-beer 45787861 | 2019-11-21T13:31:19Z | 2019-11-21T13:31:19Z | NONE |
|
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
cov() and corr() - finalization 525685973 | |
556991085 | https://github.com/pydata/xarray/pull/3550#issuecomment-556991085 | https://api.github.com/repos/pydata/xarray/issues/3550 | MDEyOklzc3VlQ29tbWVudDU1Njk5MTA4NQ== | r-beer 45787861 | 2019-11-21T09:14:20Z | 2019-11-21T09:14:20Z | NONE | PS: accidently closed and commented instead of commenting |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
cov() and corr() - finalization 525685973 | |
556990852 | https://github.com/pydata/xarray/pull/3550#issuecomment-556990852 | https://api.github.com/repos/pydata/xarray/issues/3550 | MDEyOklzc3VlQ29tbWVudDU1Njk5MDg1Mg== | r-beer 45787861 | 2019-11-21T09:13:44Z | 2019-11-21T09:14:04Z | NONE |
@shoyer, @max-sixty, @keewis, where should these functions be placed? my first guesses: - computation - dataarray |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
cov() and corr() - finalization 525685973 | |
556517301 | https://github.com/pydata/xarray/pull/3550#issuecomment-556517301 | https://api.github.com/repos/pydata/xarray/issues/3550 | MDEyOklzc3VlQ29tbWVudDU1NjUxNzMwMQ== | r-beer 45787861 | 2019-11-20T22:58:16Z | 2019-11-20T22:58:16Z | NONE |
I think it already gives a good overview, but then it might be unclear how to proceed. Maybe it might make sense to add a subsection
|
{ "total_count": 1, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 1, "rocket": 0, "eyes": 0 } |
cov() and corr() - finalization 525685973 | |
556507107 | https://github.com/pydata/xarray/pull/3550#issuecomment-556507107 | https://api.github.com/repos/pydata/xarray/issues/3550 | MDEyOklzc3VlQ29tbWVudDU1NjUwNzEwNw== | r-beer 45787861 | 2019-11-20T22:48:25Z | 2019-11-20T22:48:25Z | NONE | For the sake of completeness (and to already learn the procedure) I just added some information to I would be happy for feedback! Tomorrow, I will rewrite the methods to functions and go through all the steps again. Good night from Germany! |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
cov() and corr() - finalization 525685973 | |
556492992 | https://github.com/pydata/xarray/pull/3550#issuecomment-556492992 | https://api.github.com/repos/pydata/xarray/issues/3550 | MDEyOklzc3VlQ29tbWVudDU1NjQ5Mjk5Mg== | r-beer 45787861 | 2019-11-20T22:34:58Z | 2019-11-20T22:34:58Z | NONE |
Sure! I actually asked myself a similar software design question in another project. Shouldn't be too much effort I guess? I will tackle it tomorrow. 😴 |
{ "total_count": 1, "+1": 1, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
cov() and corr() - finalization 525685973 | |
556490349 | https://github.com/pydata/xarray/pull/3550#issuecomment-556490349 | https://api.github.com/repos/pydata/xarray/issues/3550 | MDEyOklzc3VlQ29tbWVudDU1NjQ5MDM0OQ== | r-beer 45787861 | 2019-11-20T22:32:28Z | 2019-11-20T22:32:28Z | NONE |
Oh, ok. I thought I have to create |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
cov() and corr() - finalization 525685973 | |
556487185 | https://github.com/pydata/xarray/issues/3556#issuecomment-556487185 | https://api.github.com/repos/pydata/xarray/issues/3556 | MDEyOklzc3VlQ29tbWVudDU1NjQ4NzE4NQ== | r-beer 45787861 | 2019-11-20T22:29:30Z | 2019-11-20T22:29:30Z | NONE | PS: Environment creation worked flawlessly. It's a pleasure to get into xarray contribution, thanks to you guys! 😃 |
{ "total_count": 1, "+1": 0, "-1": 0, "laugh": 0, "hooray": 1, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
doc\environment.yml not found 526243198 | |
556484204 | https://github.com/pydata/xarray/issues/3556#issuecomment-556484204 | https://api.github.com/repos/pydata/xarray/issues/3556 | MDEyOklzc3VlQ29tbWVudDU1NjQ4NDIwNA== | r-beer 45787861 | 2019-11-20T22:26:42Z | 2019-11-20T22:26:42Z | NONE |
Indeed, I deleted the cache and the documentation refreshed. Thanks! |
{ "total_count": 1, "+1": 0, "-1": 0, "laugh": 0, "hooray": 1, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
doc\environment.yml not found 526243198 | |
556476571 | https://github.com/pydata/xarray/issues/3556#issuecomment-556476571 | https://api.github.com/repos/pydata/xarray/issues/3556 | MDEyOklzc3VlQ29tbWVudDU1NjQ3NjU3MQ== | r-beer 45787861 | 2019-11-20T22:19:36Z | 2019-11-20T22:19:36Z | NONE |
Ok, thanks for the information. I followed the official guidelines, but will double-check with the dev version from now on. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
doc\environment.yml not found 526243198 | |
556473132 | https://github.com/pydata/xarray/pull/3550#issuecomment-556473132 | https://api.github.com/repos/pydata/xarray/issues/3550 | MDEyOklzc3VlQ29tbWVudDU1NjQ3MzEzMg== | r-beer 45787861 | 2019-11-20T22:16:24Z | 2019-11-20T22:16:24Z | NONE |
Alright! I am now looking into the generation of the documentation. However, it seems like the contributing guidelines are not up-to-date, as it's not possible to create the |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
cov() and corr() - finalization 525685973 | |
556404945 | https://github.com/pydata/xarray/pull/3550#issuecomment-556404945 | https://api.github.com/repos/pydata/xarray/issues/3550 | MDEyOklzc3VlQ29tbWVudDU1NjQwNDk0NQ== | r-beer 45787861 | 2019-11-20T21:14:22Z | 2019-11-20T21:14:22Z | NONE |
I have tried to wrap my head around the elegant use of fixtures and parametrize but didn't get there yet. If you have some time to show a more elegant solution, I would be happy to learn! If not, I guess this should work, too. Are the examples OK like this? |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
cov() and corr() - finalization 525685973 | |
556265324 | https://github.com/pydata/xarray/pull/3550#issuecomment-556265324 | https://api.github.com/repos/pydata/xarray/issues/3550 | MDEyOklzc3VlQ29tbWVudDU1NjI2NTMyNA== | r-beer 45787861 | 2019-11-20T19:13:20Z | 2019-11-20T19:13:20Z | NONE |
OK! That simplifies the tasks quite a bit 🙂 I will implement this and the special cases for the tests, I might add Jupyter Notebook examples later to the documentation, when the |
{ "total_count": 1, "+1": 1, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
cov() and corr() - finalization 525685973 | |
556248781 | https://github.com/pydata/xarray/pull/3550#issuecomment-556248781 | https://api.github.com/repos/pydata/xarray/issues/3550 | MDEyOklzc3VlQ29tbWVudDU1NjI0ODc4MQ== | r-beer 45787861 | 2019-11-20T18:59:08Z | 2019-11-20T18:59:08Z | NONE |
@max-sixty, I have found the |
{ "total_count": 1, "+1": 1, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
cov() and corr() - finalization 525685973 | |
556244906 | https://github.com/pydata/xarray/pull/3550#issuecomment-556244906 | https://api.github.com/repos/pydata/xarray/issues/3550 | MDEyOklzc3VlQ29tbWVudDU1NjI0NDkwNg== | r-beer 45787861 | 2019-11-20T18:55:57Z | 2019-11-20T18:55:57Z | NONE | Concerning the examples, I have started to create a I have seen that the existing examples contain html code. Why is that? Why not only markdown? |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
cov() and corr() - finalization 525685973 | |
556094542 | https://github.com/pydata/xarray/pull/3550#issuecomment-556094542 | https://api.github.com/repos/pydata/xarray/issues/3550 | MDEyOklzc3VlQ29tbWVudDU1NjA5NDU0Mg== | r-beer 45787861 | 2019-11-20T16:48:16Z | 2019-11-20T16:48:55Z | NONE |
@max-sixty, do you mean to add a TODO to the function mentioned in this commit: https://github.com/pydata/xarray/pull/3550/commits/d57eb7cfaf1407179080f0ca95e7951e5622b493? Here, I think the |
{ "total_count": 1, "+1": 1, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
cov() and corr() - finalization 525685973 | |
556050094 | https://github.com/pydata/xarray/pull/3550#issuecomment-556050094 | https://api.github.com/repos/pydata/xarray/issues/3550 | MDEyOklzc3VlQ29tbWVudDU1NjA1MDA5NA== | r-beer 45787861 | 2019-11-20T15:19:16Z | 2019-11-20T15:19:16Z | NONE |
Thank you two, @max-sixty and @keewis, for the constructive feedback that made the start easier! I would also be happy to go once through the whole process and then implement the PR for the ds separately. This will probably cut the learning curve and accelerate the process. Additionally, I wonder whether I have to configure black for the spaces between colons? I had autoformatting running with autopep8 previously but since one of the last VS code updates something broke so I will set this up properly again on Friday or tomorrow. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
cov() and corr() - finalization 525685973 | |
556010240 | https://github.com/pydata/xarray/pull/3550#issuecomment-556010240 | https://api.github.com/repos/pydata/xarray/issues/3550 | MDEyOklzc3VlQ29tbWVudDU1NjAxMDI0MA== | r-beer 45787861 | 2019-11-20T13:47:24Z | 2019-11-20T13:47:24Z | NONE |
Yes, the functionality that I would be very interested in would be to calculate |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
cov() and corr() - finalization 525685973 | |
555999418 | https://github.com/pydata/xarray/pull/3550#issuecomment-555999418 | https://api.github.com/repos/pydata/xarray/issues/3550 | MDEyOklzc3VlQ29tbWVudDU1NTk5OTQxOA== | r-beer 45787861 | 2019-11-20T13:17:37Z | 2019-11-20T13:17:37Z | NONE |
OK, no need for the extra effort at this point, the squashing at the end of PR is fine for me. Thank you for the offer, anyway! 🙂 Are any other changes necessary for the PR? ideas: - examples for corr and cov usage - whats-new.rst |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
cov() and corr() - finalization 525685973 | |
555995427 | https://github.com/pydata/xarray/pull/3550#issuecomment-555995427 | https://api.github.com/repos/pydata/xarray/issues/3550 | MDEyOklzc3VlQ29tbWVudDU1NTk5NTQyNw== | r-beer 45787861 | 2019-11-20T13:06:32Z | 2019-11-20T13:06:32Z | NONE |
Dear @keewis, I just set my real email address also as public email address and set my local git user name and email address accordingly. Does this solve the problem? |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
cov() and corr() - finalization 525685973 | |
555966566 | https://github.com/pydata/xarray/pull/3550#issuecomment-555966566 | https://api.github.com/repos/pydata/xarray/issues/3550 | MDEyOklzc3VlQ29tbWVudDU1NTk2NjU2Ng== | r-beer 45787861 | 2019-11-20T11:39:11Z | 2019-11-20T11:39:11Z | NONE | @max-sixty, all three checks fail because Shall I, therefore, add the |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
cov() and corr() - finalization 525685973 | |
555935575 | https://github.com/pydata/xarray/issues/3549#issuecomment-555935575 | https://api.github.com/repos/pydata/xarray/issues/3549 | MDEyOklzc3VlQ29tbWVudDU1NTkzNTU3NQ== | r-beer 45787861 | 2019-11-20T10:12:57Z | 2019-11-20T10:12:57Z | NONE | Thanks for the fast response @crusaderky! |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Creating conda environment as described in the contributing guidelines gives ResolvePackageNotFound error 525642358 | |
555915343 | https://github.com/pydata/xarray/pull/2652#issuecomment-555915343 | https://api.github.com/repos/pydata/xarray/issues/2652 | MDEyOklzc3VlQ29tbWVudDU1NTkxNTM0Mw== | r-beer 45787861 | 2019-11-20T09:20:39Z | 2019-11-20T09:30:31Z | NONE | Alright, I have done so and changed Or is there another option? PS: Permission to push to hrishikeshac:corr is denied for me. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
cov() and corr() 396102183 | |
555745623 | https://github.com/pydata/xarray/pull/2652#issuecomment-555745623 | https://api.github.com/repos/pydata/xarray/issues/2652 | MDEyOklzc3VlQ29tbWVudDU1NTc0NTYyMw== | r-beer 45787861 | 2019-11-19T22:27:10Z | 2019-11-19T23:00:31Z | NONE | Alright, I only got two merge conflicts in dataarray.py: minor merge conflict concerning imports: 1. accessors -> accessors_td 2. broadcast has been dropped in master?
```python
<<<<<<< HEAD
from . import (
computation,
dtypes,
groupby,
indexing,
ops,
pdcompat,
resample,
rolling,
utils,
)
from .accessor_dt import DatetimeAccessor
from .accessor_str import StringAccessor
from .alignment import (
_broadcast_helper,
_get_broadcast_dims_map_common_coords,
align,
reindex_like_indexers,
)
=======
from .accessors import DatetimeAccessor
from .alignment import align, reindex_like_indexers, broadcast
>>>>>>> added da.corr() and da.cov() to dataarray.py. Test added in test_dataarray.py, and tested using pytest.
```
Secondly, some bigger merge conflicts concerning some of dataarray's methods, but they seem to be not in conflict with each other:
1.
```
<<<<<<< HEAD
def integrate(
self, dim: Union[Hashable, Sequence[Hashable]], datetime_unit: str = None
) -> "DataArray":
""" integrate the array with the trapezoidal rule.
.. note::
This feature is limited to simple cartesian geometry, i.e. dim
must be one dimensional.
Parameters
----------
dim: hashable, or a sequence of hashable
Coordinate(s) used for the integration.
datetime_unit: str, optional
Can be used to specify the unit if datetime coordinate is used.
One of {'Y', 'M', 'W', 'D', 'h', 'm', 's', 'ms', 'us', 'ns', 'ps',
'fs', 'as'}
Returns
-------
integrated: DataArray
See also
--------
numpy.trapz: corresponding numpy function
Examples
--------
>>> da = xr.DataArray(np.arange(12).reshape(4, 3), dims=['x', 'y'],
... coords={'x': [0, 0.1, 1.1, 1.2]})
>>> da
<xarray.DataArray (x: 4, y: 3)>
array([[ 0, 1, 2],
[ 3, 4, 5],
[ 6, 7, 8],
[ 9, 10, 11]])
Coordinates:
* x (x) float64 0.0 0.1 1.1 1.2
Dimensions without coordinates: y
>>>
>>> da.integrate('x')
<xarray.DataArray (y: 3)>
array([5.4, 6.6, 7.8])
Dimensions without coordinates: y
"""
ds = self._to_temp_dataset().integrate(dim, datetime_unit)
return self._from_temp_dataset(ds)
def unify_chunks(self) -> "DataArray":
""" Unify chunk size along all chunked dimensions of this DataArray.
Returns
-------
DataArray with consistent chunk sizes for all dask-array variables
See Also
--------
dask.array.core.unify_chunks
"""
ds = self._to_temp_dataset().unify_chunks()
return self._from_temp_dataset(ds)
def map_blocks(
self,
func: "Callable[..., T_DSorDA]",
args: Sequence[Any] = (),
kwargs: Mapping[str, Any] = None,
) -> "T_DSorDA":
"""
Apply a function to each chunk of this DataArray. This method is experimental
and its signature may change.
Parameters
----------
func: callable
User-provided function that accepts a DataArray as its first parameter. The
function will receive a subset of this DataArray, corresponding to one chunk
along each chunked dimension. ``func`` will be executed as
``func(obj_subset, *args, **kwargs)``.
The function will be first run on mocked-up data, that looks like this array
but has sizes 0, to determine properties of the returned object such as
dtype, variable names, new dimensions and new indexes (if any).
This function must return either a single DataArray or a single Dataset.
This function cannot change size of existing dimensions, or add new chunked
dimensions.
args: Sequence
Passed verbatim to func after unpacking, after the sliced DataArray. xarray
objects, if any, will not be split by chunks. Passing dask collections is
not allowed.
kwargs: Mapping
Passed verbatim to func after unpacking. xarray objects, if any, will not be
split by chunks. Passing dask collections is not allowed.
Returns
-------
A single DataArray or Dataset with dask backend, reassembled from the outputs of
the function.
Notes
-----
This method is designed for when one needs to manipulate a whole xarray object
within each chunk. In the more common case where one can work on numpy arrays,
it is recommended to use apply_ufunc.
If none of the variables in this DataArray is backed by dask, calling this
method is equivalent to calling ``func(self, *args, **kwargs)``.
See Also
--------
dask.array.map_blocks, xarray.apply_ufunc, xarray.map_blocks,
xarray.Dataset.map_blocks
"""
from .parallel import map_blocks
return map_blocks(func, self, args, kwargs)
# this needs to be at the end, or mypy will confuse with `str`
# https://mypy.readthedocs.io/en/latest/common_issues.html#dealing-with-conflicting-names
str = property(StringAccessor)
=======
def cov(self, other, dim = None):
"""Compute covariance between two DataArray objects along a shared dimension.
Parameters
----------
other: DataArray
The other array with which the covariance will be computed
dim: The dimension along which the covariance will be computed
Returns
-------
covariance: DataArray
"""
# 1. Broadcast the two arrays
self, other = broadcast(self, other)
# 2. Ignore the nans
valid_values = self.notnull() & other.notnull()
self = self.where(valid_values, drop=True)
other = other.where(valid_values, drop=True)
valid_count = valid_values.sum(dim)
#3. Compute mean and standard deviation along the given dim
demeaned_self = self - self.mean(dim = dim)
demeaned_other = other - other.mean(dim = dim)
#4. Compute covariance along the given dim
cov = (demeaned_self*demeaned_other).sum(dim=dim)/(valid_count)
return cov
def corr(self, other, dim = None):
"""Compute correlation between two DataArray objects along a shared dimension.
Parameters
----------
other: DataArray
The other array with which the correlation will be computed
dim: The dimension along which the correlation will be computed
Returns
-------
correlation: DataArray
"""
# 1. Broadcast the two arrays
self, other = broadcast(self, other)
# 2. Ignore the nans
valid_values = self.notnull() & other.notnull()
self = self.where(valid_values, drop=True)
other = other.where(valid_values, drop=True)
# 3. Compute correlation based on standard deviations and cov()
self_std = self.std(dim=dim)
other_std = other.std(dim=dim)
return self.cov(other, dim = dim)/(self_std*other_std)
>>>>>>> added da.corr() and da.cov() to dataarray.py. Test added in test_dataarray.py, and tested using pytest.
```
Can you please comment my suggested changes (accepting either changes from master or both, if no conflicts). |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
cov() and corr() 396102183 | |
555737000 | https://github.com/pydata/xarray/pull/2652#issuecomment-555737000 | https://api.github.com/repos/pydata/xarray/issues/2652 | MDEyOklzc3VlQ29tbWVudDU1NTczNzAwMA== | r-beer 45787861 | 2019-11-19T22:03:46Z | 2019-11-19T22:03:46Z | NONE |
I read http://xarray.pydata.org/en/stable/contributing.html, is this identical to contributing.rst?
Following those guidelines, I would use the following commands to "retrieve the changes from the master branch":
Where upstream = https://github.com/pydata/xarray.git? |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
cov() and corr() 396102183 | |
555734331 | https://github.com/pydata/xarray/pull/2652#issuecomment-555734331 | https://api.github.com/repos/pydata/xarray/issues/2652 | MDEyOklzc3VlQ29tbWVudDU1NTczNDMzMQ== | r-beer 45787861 | 2019-11-19T21:57:02Z | 2019-11-19T21:57:02Z | NONE | @max-sixty, thanks for the fast response! Yeah, I get the traceback and already started diving into it. However, I assumed that @hrishikeshac's branch "corr" wasn't up-to-date. Shall I merge changes from master or develop into corr, before looking further into the tests? |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
cov() and corr() 396102183 | |
555730897 | https://github.com/pydata/xarray/pull/2652#issuecomment-555730897 | https://api.github.com/repos/pydata/xarray/issues/2652 | MDEyOklzc3VlQ29tbWVudDU1NTczMDg5Nw== | r-beer 45787861 | 2019-11-19T21:48:07Z | 2019-11-19T21:48:07Z | NONE | Dear @Hoeze, I will (try to) finalize this merge request, as I am also very interested in this functionality. I am new to xarray and contribution. I downloaded @hrishikeshac's code and ran the pytest tests locally. I get Is there an elegant way to share "which tests failed where" in order to avoid that I try to fix tests, that might already have been fixed in other branches? I will already start to get a better understanding of why the tests fail and try to fix them in the meantime. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
cov() and corr() 396102183 | |
555726775 | https://github.com/pydata/xarray/issues/1115#issuecomment-555726775 | https://api.github.com/repos/pydata/xarray/issues/1115 | MDEyOklzc3VlQ29tbWVudDU1NTcyNjc3NQ== | r-beer 45787861 | 2019-11-19T21:36:42Z | 2019-11-19T21:36:42Z | NONE |
OK, that means to make #2652 pass, right? I downloaded the respective branch from @hrishikeshac, and ran the tests locally. See respective discussion in #2652. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Feature request: Compute cross-correlation (similar to pd.Series.corr()) of gridded data 188996339 | |
555376229 | https://github.com/pydata/xarray/issues/1115#issuecomment-555376229 | https://api.github.com/repos/pydata/xarray/issues/1115 | MDEyOklzc3VlQ29tbWVudDU1NTM3NjIyOQ== | r-beer 45787861 | 2019-11-19T07:44:23Z | 2019-11-19T07:45:26Z | NONE | I am also highly interested in this function and in contributing to xarray in general! If I understand correctly, https://github.com/pydata/xarray/pull/2350 and https://github.com/pydata/xarray/pull/2652 do not solve this PR, do they? How can I help you finishing these PRs? |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Feature request: Compute cross-correlation (similar to pd.Series.corr()) of gridded data 188996339 |
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]);
issue 5