home / github

Menu
  • Search all tables
  • GraphQL API

issue_comments

Table actions
  • GraphQL API for issue_comments

11 rows where issue = 963239311 sorted by updated_at descending

✎ View and edit SQL

This data as json, CSV (advanced)

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

user 5

  • tomchor 5
  • dcherian 3
  • Illviljan 1
  • pep8speaks 1
  • github-actions[bot] 1

author_association 3

  • CONTRIBUTOR 6
  • MEMBER 4
  • NONE 1

issue 1

  • Improves rendering of complex LaTeX expressions as `long_name`s when plotting · 11 ✖
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions performed_via_github_app issue
896220721 https://github.com/pydata/xarray/pull/5682#issuecomment-896220721 https://api.github.com/repos/pydata/xarray/issues/5682 IC_kwDOAMm_X841az4x github-actions[bot] 41898282 2021-08-10T18:32:46Z 2021-08-17T02:59:43Z CONTRIBUTOR

Unit Test Results

6 files  ±0           6 suites  ±0   59m 58s :stopwatch: ±0s 16 218 tests ±0  14 482 :heavy_check_mark: ±0  1 735 :zzz: ±0  1 :x: ±0  90 504 runs  ±0  82 323 :heavy_check_mark: ±0  8 175 :zzz: ±0  6 :x: ±0 

For more details on these failures, see this check.

Results for commit 41099669. ± Comparison against base commit 41099669.

:recycle: This comment has been updated with latest results.

{
    "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
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
899945997 https://github.com/pydata/xarray/pull/5682#issuecomment-899945997 https://api.github.com/repos/pydata/xarray/issues/5682 IC_kwDOAMm_X841pBYN dcherian 2448579 2021-08-17T02:29:33Z 2021-08-17T02:29:33Z MEMBER

That's unrelated, see #5654

{
    "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
899929020 https://github.com/pydata/xarray/pull/5682#issuecomment-899929020 https://api.github.com/repos/pydata/xarray/issues/5682 IC_kwDOAMm_X841o9O8 dcherian 2448579 2021-08-17T01:41:51Z 2021-08-17T01:42:08Z MEMBER

Looks great. I'll merge when tests pass.

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

{
    "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
894660777 https://github.com/pydata/xarray/pull/5682#issuecomment-894660777 https://api.github.com/repos/pydata/xarray/issues/5682 IC_kwDOAMm_X841U3Cp pep8speaks 24736507 2021-08-07T14:18:19Z 2021-08-17T01:41:00Z NONE

Hello @tomchor! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

There are currently no PEP 8 issues detected in this Pull Request. Cheers! :beers:

Comment last updated at 2021-08-17 01:40:59 UTC
{
    "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
897696009 https://github.com/pydata/xarray/pull/5682#issuecomment-897696009 https://api.github.com/repos/pydata/xarray/issues/5682 IC_kwDOAMm_X841gcEJ dcherian 2448579 2021-08-12T14:39:05Z 2021-08-12T14:39:05Z MEMBER

@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

{
    "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
894867998 https://github.com/pydata/xarray/pull/5682#issuecomment-894867998 https://api.github.com/repos/pydata/xarray/issues/5682 IC_kwDOAMm_X841Vpoe Illviljan 14371165 2021-08-08T22:58:21Z 2021-08-08T22:58:21Z MEMBER

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.

{
    "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

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