home / github

Menu
  • Search all tables
  • GraphQL API

issue_comments

Table actions
  • GraphQL API for issue_comments

4 rows where user = 25624127 sorted by updated_at descending

✎ View and edit SQL

This data as json, CSV (advanced)

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

issue 4

  • [Bug]: `numpy` `DeprecationWarning` with `DType` and `xr.testing.assert_all_close()` + Dask 1
  • Bump minimum numpy version to 1.20 1
  • Add xCDAT to list of Xarray related projects 1
  • deprecate the `cdms2` conversion methods 1

user 1

  • tomvothecoder · 4 ✖

author_association 1

  • CONTRIBUTOR 4
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions performed_via_github_app issue
1568704895 https://github.com/pydata/xarray/pull/7876#issuecomment-1568704895 https://api.github.com/repos/pydata/xarray/issues/7876 IC_kwDOAMm_X85dgIl_ tomvothecoder 25624127 2023-05-30T16:09:17Z 2023-05-30T20:59:48Z CONTRIBUTOR

Thanks you @keewis and @Illviljan! I made comment to deprecate cdms2 in xarray in another issue/PR last year and didn't get around to it. I linked this PR in an xCDAT discussion post here.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  deprecate the `cdms2` conversion methods 1729709527
1453843131 https://github.com/pydata/xarray/pull/7579#issuecomment-1453843131 https://api.github.com/repos/pydata/xarray/issues/7579 IC_kwDOAMm_X85Wp-K7 tomvothecoder 25624127 2023-03-03T17:10:56Z 2023-03-03T17:10:56Z CONTRIBUTOR

Thank you @jhamman!

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Add xCDAT to list of Xarray related projects 1607677974
1273573402 https://github.com/pydata/xarray/pull/6834#issuecomment-1273573402 https://api.github.com/repos/pydata/xarray/issues/6834 IC_kwDOAMm_X85L6TAa tomvothecoder 25624127 2022-10-10T16:40:59Z 2022-10-10T16:52:25Z CONTRIBUTOR

With netcdf4 1.5.4

Encountered problems while solving: - package cdms2-3.1.0-py27h6091dcd_0 requires python >=2.7,<2.8.0a0, but none of the providers can be installed @tomvothecoder, I see you're committing to cdms. Is this something you've run in to?

since all CI runs are currently broken due to new flox requiring numpy>=1.20

sorry! trying to fix this in conda-forge/flox-feedstock#22

I haven't ran into this issue since I've only committed documentation and README updates for the repo.

@jasonb5 maintains the repo dependencies, so let's see if he can help. Jason, can you try taking a look at this issue? It looks like cdms2 is breaking the xarray builds.

As a side-note, cdms2 (and CDAT as a whole) is now in maintenance-only mode and support will cease around the end of CY 2023. Just an FYI to plan for possibly dropping cdms2 from xarray in the future. CDAT's successor is xCDAT (Xarray Climate Data Analysis Tools) .

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Bump minimum numpy version to 1.20 1318808368
1076832515 https://github.com/pydata/xarray/issues/6149#issuecomment-1076832515 https://api.github.com/repos/pydata/xarray/issues/6149 IC_kwDOAMm_X85ALykD tomvothecoder 25624127 2022-03-23T21:21:28Z 2022-03-23T21:21:28Z CONTRIBUTOR

I was able to isolate the parts of my code that causes this numpy warning to be thrown.

Here's how the warning was thrown: 1. Chunk a Dataset using Dask 2. Calculate length of time by subtracting the upper and lower bounds of each time coordinate (dtype is datetime64[ns]). This produces a DataArray with a dtype of timedelta64[ns]. 3. Calculate the weights using xarray's grouped arithmetic. 4. numpy warning is thrown after xarray's groupby.sum() call - https://github.com/numpy/numpy/blob/c63f2c2bab48e0446b34f3bba5574729327d68d1/numpy/core/fromnumeric.py#L86

My workaround is to convert the dtype of the underlying dask.array from timedelta[64] to float64 before performing the grouped arithmetic. I'm still unclear as to why this only affects dask.array though.

Related code: ``` def _get_weights(self, data_var: xr.DataArray) -> xr.DataArray: """Calculates weights for a data variable using time bounds."""

    with xr.set_options(keep_attrs=True):
        time_lengths: xr.DataArray = self._time_bounds[:, 1] - self._time_bounds[:, 0]

    # Must be convert dtype from timedelta64[ns] to float64, specifically
    # when chunking DataArrays using Dask. Otherwise, the numpy warning
    # below is thrown: `DeprecationWarning: The `dtype` and `signature`
    # arguments to ufuncs only select the general DType and not details such
    # as the byte order or time unit (with rare exceptions see release
    # notes). To avoid this warning please use the scalar types
    # `np.float64`, or string notation.`
    time_lengths = time_lengths.astype(np.float64)
    time_grouped = self._groupby_multiindex(time_lengths)
    weights: xr.DataArray = time_grouped / time_grouped.sum()  # type: ignore

    self._validate_weights(data_var, weights)
    return weights

def _groupby_multiindex(self, data_var: xr.DataArray) -> DataArrayGroupBy:
    """Adds the MultiIndex to the data variable and groups by it."""
    dv = data_var.copy()
    dv.coords[self._multiindex_name] = ("time", self._multiindex)
    dv_gb = dv.groupby(self._multiindex_name)
    return dv_gb

```

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  [Bug]: `numpy` `DeprecationWarning` with `DType` and `xr.testing.assert_all_close()` + Dask 1098241812

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