home / github

Menu
  • Search all tables
  • GraphQL API

issue_comments

Table actions
  • GraphQL API for issue_comments

21 rows where author_association = "CONTRIBUTOR" and user = 13205162 sorted by updated_at descending

✎ View and edit SQL

This data as json, CSV (advanced)

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

issue 11

  • Improves rendering of complex LaTeX expressions as `long_name`s when plotting 5
  • Animate DataArrays 4
  • Manually subtracting two slices of DataArary always produces zero output 2
  • Support from reading unformatted Fortran files 2
  • Complex LaTeX expressions in `long_name`s aren't rendered correctly when plotting 2
  • HDF5 backend for xray 1
  • Shape preserving `diff` via new keywords 1
  • Assembling a domain from smaller 2D patches using DataArray 1
  • Add cupy support 1
  • Include a markertype in `Dataset.plot.scatter` 1
  • Fix errors in test_latex_name_isnt_split for min environments 1

user 1

  • tomchor · 21 ✖

author_association 1

  • CONTRIBUTOR · 21 ✖
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions performed_via_github_app issue
900384483 https://github.com/pydata/xarray/pull/5710#issuecomment-900384483 https://api.github.com/repos/pydata/xarray/issues/5710 IC_kwDOAMm_X841qsbj tomchor 13205162 2021-08-17T15:11:23Z 2021-08-17T15:11:23Z CONTRIBUTOR

On my end I think this idea is fine! Although I don't really understand why matplotlib would be needed for that test in the first place. Sorry to have inadvertently introduced a failing test.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Fix errors in test_latex_name_isnt_split for min environments 972720354
899947392 https://github.com/pydata/xarray/pull/5682#issuecomment-899947392 https://api.github.com/repos/pydata/xarray/issues/5682 IC_kwDOAMm_X841pBuA tomchor 13205162 2021-08-17T02:33:45Z 2021-08-17T02:33:45Z CONTRIBUTOR

That's unrelated, see #5654

Ah, I see. Thanks for merging!

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Improves rendering of complex LaTeX expressions as `long_name`s when plotting 963239311
899943472 https://github.com/pydata/xarray/pull/5682#issuecomment-899943472 https://api.github.com/repos/pydata/xarray/issues/5682 IC_kwDOAMm_X841pAww tomchor 13205162 2021-08-17T02:22:01Z 2021-08-17T02:22:01Z CONTRIBUTOR

Looks great. I'll merge when tests pass.

Thanks @tomchor. I see this is your first PR here. Welcome to xarray!

Thanks!

I think you spoke too soon though haha. One of the tests is failing and I don't really know why! I never touched the test_chunk() function...:

=========================== short test summary info ============================ FAILED xarray/tests/test_sparse.py::test_chunk - TypeError: operand type(s) a... = 1 failed, 13681 passed, 1110 skipped, 225 xfailed, 67 xpassed, 212 warnings in 445.02s (0:07:25) = **PNC:/usr/share/miniconda/envs/xarray-tests/lib/python3.7/site-packages/PseudoNetCDF/pncwarn.py:24:UserWarning: pyproj could not be found, so IO/API coordinates cannot be converted to lat/lon; to fix, install pyproj or basemap (e.g., `pip install pyproj)` Error: Process completed with exit code 1.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Improves rendering of complex LaTeX expressions as `long_name`s when plotting 963239311
899085600 https://github.com/pydata/xarray/pull/5682#issuecomment-899085600 https://api.github.com/repos/pydata/xarray/issues/5682 IC_kwDOAMm_X841lvUg tomchor 13205162 2021-08-15T17:32:23Z 2021-08-15T17:32:23Z CONTRIBUTOR

@tomchor thanks. Yes all you need to do is define a test function that checks something and pytest will run it.

you can run it following the instructions here: https://xarray.pydata.org/en/stable/contributing.html#running-the-test-suite

(something like this)

pytest xarray/tests/test_utils.py -k test_latex_name_isnt_split

Thanks! This makes it much easier to test everything locally. I test the new test locally and it should pass now. I also saw that test_chunk() isn't passing and I don't know why. Also I can't run that test locally for some reason.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Improves rendering of complex LaTeX expressions as `long_name`s when plotting 963239311
897160926 https://github.com/pydata/xarray/pull/5682#issuecomment-897160926 https://api.github.com/repos/pydata/xarray/issues/5682 IC_kwDOAMm_X841eZbe tomchor 13205162 2021-08-11T21:17:26Z 2021-08-11T21:17:26Z CONTRIBUTOR

I defined a function that tests that a long latex sequence stays intact after going through label_from_attrs(), but I'm not sure if that's the same as adding the test. It seems from the Pytest docs that you don't need to call the function explicitly; just define it. In which case that do the trick.

@dcherian could you please confirm?

Also the tests weren't passing before I added this last commit, and I have no idea why.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Improves rendering of complex LaTeX expressions as `long_name`s when plotting 963239311
894882015 https://github.com/pydata/xarray/pull/5682#issuecomment-894882015 https://api.github.com/repos/pydata/xarray/issues/5682 IC_kwDOAMm_X841VtDf tomchor 13205162 2021-08-09T00:27:12Z 2021-08-09T00:27:12Z CONTRIBUTOR

I wonder if it will look best if we avoid splitting inside the latex code? name, extra and units can have latex as well so I think we need to handle the entire name+extra+units string somehow.

I was playing around a little with regex but I didn't get that far:

```python import textwrap import re

name = r"$Ra_s = \mathrm{mean}(\epsilon_k) / \mu M^2_\infty$" extra = "Longwinded comments about something confusing. " units = r"$[N / m]$" label_raw = name + extra + units label_notex = re.sub("\$(.+?)\$", "X ", label_raw, flags=re.DOTALL) label_notex_wrap = textwrap.wrap(label_notex, 30) label_tex_wrap = ... # regex to add back the latex strings.
```

There might very well be a simpler way of doing this.

I couldn't figure out any way to avoid splitting LaTeX code. I suspect that the way to do it might be kind of complex (but I'm happy if someone can prove me wrong). We can also increase the number of columns for the latex option even more to maintain simplicity...

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Improves rendering of complex LaTeX expressions as `long_name`s when plotting 963239311
894561619 https://github.com/pydata/xarray/issues/5681#issuecomment-894561619 https://api.github.com/repos/pydata/xarray/issues/5681 IC_kwDOAMm_X841Ue1T tomchor 13205162 2021-08-06T23:14:34Z 2021-08-06T23:14:34Z CONTRIBUTOR

I'm not entirely sure why that would make the LaTeX renderer fail. But if that's the case and skipping it is an option, I'd test that both the first and last characters are $ before skipping.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Complex LaTeX expressions in `long_name`s aren't rendered correctly when plotting 963089887
894555968 https://github.com/pydata/xarray/issues/5681#issuecomment-894555968 https://api.github.com/repos/pydata/xarray/issues/5681 IC_kwDOAMm_X841UddA tomchor 13205162 2021-08-06T22:55:28Z 2021-08-06T22:55:57Z CONTRIBUTOR

Note that for simple latex expressions xarray appears to work fine. For example name = r"$\mathrm{mean}(\epsilon_k)$" works in both figures in the example above.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Complex LaTeX expressions in `long_name`s aren't rendered correctly when plotting 963089887
792477146 https://github.com/pydata/xarray/issues/4997#issuecomment-792477146 https://api.github.com/repos/pydata/xarray/issues/4997 MDEyOklzc3VlQ29tbWVudDc5MjQ3NzE0Ng== tomchor 13205162 2021-03-08T05:33:45Z 2021-03-08T05:33:45Z CONTRIBUTOR

This definitely sounds okay by me. I'm trying to figure out on my own how to implement this, but these plotting functions are quite complicated with the decorators and the inferences and all! I haven't been able to make much sense of it unfortunately.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Include a markertype in `Dataset.plot.scatter` 822404281
775284567 https://github.com/pydata/xarray/issues/4212#issuecomment-775284567 https://api.github.com/repos/pydata/xarray/issues/4212 MDEyOklzc3VlQ29tbWVudDc3NTI4NDU2Nw== tomchor 13205162 2021-02-08T16:50:38Z 2021-02-08T16:50:38Z CONTRIBUTOR

@jacobtomlinson Really glad someone's working on this! I'd be glad to help if I can (although I've never contributed to xarray and I don't know much about GPUs). I have some questions though.

Do you have a specific purpose in mind for this? I ask because most other discussions I see related to this really just wanna do ML. However, there's a large user base (myself included) that would benefit immensely from just doing regular (non-machine-learning) operations with a GPU backend.

Also, what's the status on the development? I see no comments after July 2020 and I'm hoping I can help get this back on track if needed!

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Add cupy support 654135405
489873332 https://github.com/pydata/xarray/issues/2911#issuecomment-489873332 https://api.github.com/repos/pydata/xarray/issues/2911 MDEyOklzc3VlQ29tbWVudDQ4OTg3MzMzMg== tomchor 13205162 2019-05-07T01:41:15Z 2019-05-07T01:41:15Z CONTRIBUTOR

Wrote a simple function here. I'm not sure what the best to link this to the docs is, since I can't guarantee that this function will change in the future. Maybe link the commit? Or maybe just straight up pasting that into the docs with a small example script using it?

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Support from reading unformatted Fortran files 435532136
485473367 https://github.com/pydata/xarray/issues/2911#issuecomment-485473367 https://api.github.com/repos/pydata/xarray/issues/2911 MDEyOklzc3VlQ29tbWVudDQ4NTQ3MzM2Nw== tomchor 13205162 2019-04-22T16:49:46Z 2019-04-22T16:49:57Z CONTRIBUTOR

@dcherian That's a good idea. At the moment my implementation is very problem-specific so it's not good to upload that. Generalizing it is very straightforward though (albeit a bit of work), but I'll try to do that soon. I wonder what the best place for that in the docs would be.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Support from reading unformatted Fortran files 435532136
485287247 https://github.com/pydata/xarray/issues/66#issuecomment-485287247 https://api.github.com/repos/pydata/xarray/issues/66 MDEyOklzc3VlQ29tbWVudDQ4NTI4NzI0Nw== tomchor 13205162 2019-04-21T22:37:48Z 2019-04-21T22:37:48Z CONTRIBUTOR

Have there been any developments for HDF5 support? I've been trying to read HDF5 data from Dedalus but I've been having a hard time.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  HDF5 backend for xray 29453809
418154705 https://github.com/pydata/xarray/issues/1332#issuecomment-418154705 https://api.github.com/repos/pydata/xarray/issues/1332 MDEyOklzc3VlQ29tbWVudDQxODE1NDcwNQ== tomchor 13205162 2018-09-03T16:14:46Z 2018-09-03T16:14:46Z CONTRIBUTOR

I'm not sure where we stand on this issue, but I think since numpy.gradient already exists, it makes more sense to wrap that function for the sake of simplicity instead of making xr.diff differ from the original premise of np.diff.

On the same topic, it bothers me that xr.diff only accepts "upper" and "lower" arguments for the label. The most obvious (and useful) value in my opinion would be "middle", which would correspond to a centered finite differences. Is there any special reason why that option isn't there?

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Shape preserving `diff` via new keywords 217385961
405054591 https://github.com/pydata/xarray/issues/2286#issuecomment-405054591 https://api.github.com/repos/pydata/xarray/issues/2286 MDEyOklzc3VlQ29tbWVudDQwNTA1NDU5MQ== tomchor 13205162 2018-07-14T22:44:54Z 2018-07-14T22:44:54Z CONTRIBUTOR

Just realized that you can do that with successive iterations of combine_first. I had misread the docs previously. This can be considered a closed issue.

{
    "total_count": 1,
    "+1": 1,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Assembling a domain from smaller 2D patches using DataArray 341272087
378123085 https://github.com/pydata/xarray/issues/2035#issuecomment-378123085 https://api.github.com/repos/pydata/xarray/issues/2035 MDEyOklzc3VlQ29tbWVudDM3ODEyMzA4NQ== tomchor 13205162 2018-04-03T04:15:29Z 2018-04-03T04:15:29Z CONTRIBUTOR

@maxim-lian But my last point remains: should this really return a zero-valued matrix? I feel like this is counter-intuitive

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Manually subtracting two slices of DataArary always produces zero output 310670696
378114226 https://github.com/pydata/xarray/issues/2035#issuecomment-378114226 https://api.github.com/repos/pydata/xarray/issues/2035 MDEyOklzc3VlQ29tbWVudDM3ODExNDIyNg== tomchor 13205162 2018-04-03T03:08:07Z 2018-04-03T03:08:07Z CONTRIBUTOR

I just realized this is probably the expected behavior (although counter-intuitive for me) since the coordinates of the points I'm operating on are different. I still don't understand why the returned array has zero values though, instead of nans.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Manually subtracting two slices of DataArary always produces zero output 310670696
377571072 https://github.com/pydata/xarray/issues/2030#issuecomment-377571072 https://api.github.com/repos/pydata/xarray/issues/2030 MDEyOklzc3VlQ29tbWVudDM3NzU3MTA3Mg== tomchor 13205162 2018-03-30T17:02:40Z 2018-03-30T17:03:09Z CONTRIBUTOR

@philippjfr Even with the alteration I still get a HoloMap type not found (using HV 1.9.5) error. I can still see the animation, though. And switching to 'Agg' did allow me to save the animation in mp4, which is good. All workarounds aside, this works pretty well. Thanks a lot to all.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Animate DataArrays 309965118
377565812 https://github.com/pydata/xarray/issues/2030#issuecomment-377565812 https://api.github.com/repos/pydata/xarray/issues/2030 MDEyOklzc3VlQ29tbWVudDM3NzU2NTgxMg== tomchor 13205162 2018-03-30T16:40:02Z 2018-03-30T16:40:02Z CONTRIBUTOR

@philippjfr Thanks for the comment. I hand't found anything like that. For me, %%output isn't a recognized magic command, and the renderer.save command fails for me with a tkinter-related error (can't invoke "wm" command), so I really couldn't see anything yet. But I believe I'll be able to solve that eventually.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Animate DataArrays 309965118
377543021 https://github.com/pydata/xarray/issues/2030#issuecomment-377543021 https://api.github.com/repos/pydata/xarray/issues/2030 MDEyOklzc3VlQ29tbWVudDM3NzU0MzAyMQ== tomchor 13205162 2018-03-30T15:00:44Z 2018-03-30T15:00:44Z CONTRIBUTOR

I didn't know holoviews existed, thanks for pointing that out to me. The fact that it can't create an animation file (as far as I could tell so far) does mean I can't use it, though. So I'll still try to pursue the matplotlib animation option, although maybe for most users holoviews+xarray might already be enough (I don't know).

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Animate DataArrays 309965118
377439646 https://github.com/pydata/xarray/issues/2030#issuecomment-377439646 https://api.github.com/repos/pydata/xarray/issues/2030 MDEyOklzc3VlQ29tbWVudDM3NzQzOTY0Ng== tomchor 13205162 2018-03-30T04:02:24Z 2018-03-30T04:16:17Z CONTRIBUTOR

Unfortunately I don't have any example with DataArray right now. Since I never could take advantage of DataArray's plotting capabilities for animations, I always did animations using pure Numpy. However, I'm talking about the standard matplotlib animations. Here's an example taken from here:

```import numpy as np import matplotlib matplotlib.use("Agg") import matplotlib.pyplot as plt import matplotlib.animation as animation

def update_line(num, data, line): line.set_data(data[..., :num]) return line,

Set up formatting for the movie files

Writer = animation.writers['ffmpeg'] writer = Writer(fps=15, metadata=dict(artist='Me'), bitrate=1800)

fig1 = plt.figure()

data = np.random.rand(2, 25) l, = plt.plot([], [], 'r-') plt.xlim(0, 1) plt.ylim(0, 1) plt.xlabel('x') plt.title('test') line_ani = animation.FuncAnimation(fig1, update_line, 25, fargs=(data, l), interval=50, blit=True) line_ani.save('lines.mp4', writer=writer) ```

If you have some directions on a smart way to bring xarray into the picture, maybe I can try to come up with an example that might evolve into a contribution.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Animate DataArrays 309965118

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