issue_comments
8 rows where issue = 778069594 sorted by updated_at descending
This data as json, CSV (advanced)
Suggested facets: reactions, created_at (date), updated_at (date)
issue 1
- WIP: testing.assert_* check dtype · 8 ✖
id | html_url | issue_url | node_id | user | created_at | updated_at ▲ | author_association | body | reactions | performed_via_github_app | issue |
---|---|---|---|---|---|---|---|---|---|---|---|
945825537 | https://github.com/pydata/xarray/pull/4760#issuecomment-945825537 | https://api.github.com/repos/pydata/xarray/issues/4760 | IC_kwDOAMm_X844YCcB | mathause 10194086 | 2021-10-18T14:21:56Z | 2021-10-18T14:21:56Z | MEMBER | I closed the PR by accident but I think I'll keep it closed, unless there is interest to get this in. Testing dtypes could be an interesting option, however,
|
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
WIP: testing.assert_* check dtype 778069594 | |
774112777 | https://github.com/pydata/xarray/pull/4760#issuecomment-774112777 | https://api.github.com/repos/pydata/xarray/issues/4760 | MDEyOklzc3VlQ29tbWVudDc3NDExMjc3Nw== | mathause 10194086 | 2021-02-05T15:44:58Z | 2021-02-05T16:14:22Z | MEMBER | True, but for the problem that the diff repr is not shown I think it makes sense to go for this, e.g. the following works fine: ```python def test_x():
``` |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
WIP: testing.assert_* check dtype 778069594 | |
774106999 | https://github.com/pydata/xarray/pull/4760#issuecomment-774106999 | https://api.github.com/repos/pydata/xarray/issues/4760 | MDEyOklzc3VlQ29tbWVudDc3NDEwNjk5OQ== | keewis 14808389 | 2021-02-05T15:35:18Z | 2021-02-05T16:00:17Z | MEMBER | to really fix this we need some way to say "I really want to convert to a |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
WIP: testing.assert_* check dtype 778069594 | |
774115528 | https://github.com/pydata/xarray/pull/4760#issuecomment-774115528 | https://api.github.com/repos/pydata/xarray/issues/4760 | MDEyOklzc3VlQ29tbWVudDc3NDExNTUyOA== | keewis 14808389 | 2021-02-05T15:49:32Z | 2021-02-05T15:59:52Z | MEMBER | yes, I agree that it makes sense to set warnings to |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
WIP: testing.assert_* check dtype 778069594 | |
774101639 | https://github.com/pydata/xarray/pull/4760#issuecomment-774101639 | https://api.github.com/repos/pydata/xarray/issues/4760 | MDEyOklzc3VlQ29tbWVudDc3NDEwMTYzOQ== | mathause 10194086 | 2021-02-05T15:27:27Z | 2021-02-05T15:27:27Z | MEMBER | Thanks! That drove me nuts but I finally figured out the problem: promotes the warning to an error so ```python import pint import pytest import xarray as xr pytestmark = [ pytest.mark.filterwarnings("error::pint.UnitStrippedWarning"), ] unit_registry = pint.UnitRegistry(force_ndarray=True) def test_y():
``` @keewis do you have an idea how to fix this? One idea is to supress warnings in |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
WIP: testing.assert_* check dtype 778069594 | |
774024142 | https://github.com/pydata/xarray/pull/4760#issuecomment-774024142 | https://api.github.com/repos/pydata/xarray/issues/4760 | MDEyOklzc3VlQ29tbWVudDc3NDAyNDE0Mg== | keewis 14808389 | 2021-02-05T13:10:27Z | 2021-02-05T14:14:20Z | MEMBER | the difference is that the unit registry has |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
WIP: testing.assert_* check dtype 778069594 | |
774001075 | https://github.com/pydata/xarray/pull/4760#issuecomment-774001075 | https://api.github.com/repos/pydata/xarray/issues/4760 | MDEyOklzc3VlQ29tbWVudDc3NDAwMTA3NQ== | mathause 10194086 | 2021-02-05T12:22:41Z | 2021-02-05T12:22:41Z | MEMBER | @keewis The following test is giving me trouble: I now try to reproduce what it does but I cannot even manage that... I think the following is what the test does but it fails with ```python import numpy as np import pint import xarray as xr unit_registry = pint.UnitRegistry() dtype = np.int64 data_unit1 = unit_registry.m data_unit2 = unit_registry.mm array1 = np.linspace(0, 10, 2 * 5).reshape(2, 5).astype(dtype) array2 = np.linspace(0, 8, 2 * 5).reshape(2, 5).astype(dtype) x = np.arange(2) # * dim_unit1 y1 = np.arange(5) # * dim_unit1 y2 = np.arange(2, 7) # * dim_unit2 u1 = np.array([3, 5, 7, 8, 9]) # * coord_unit1 u2 = np.array([7, 8, 9, 11, 13]) # * coord_unit2 coords1 = {"x": x, "y": y1} coords2 = {"x": x, "y": y2} data_array1 = xr.DataArray(data=array1 * data_unit1, coords=coords1, dims=("x", "y")) data_array2 = xr.DataArray(data=array2 * data_unit2, coords=coords2, dims=("x", "y")) fill_value = 10 actual_a, actual_b = xr.align(data_array1, data_array2, join="outer", fill_value=fill_value * data_unit1) ``` The underlying problem is that when I run this test with
```python-traceback
> assert_allclose(expected_b, actual_b)
/home/mathause/code/xarray/xarray/tests/test_units.py:542:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/home/mathause/code/xarray/xarray/tests/__init__.py:208: in assert_allclose
xarray.testing.assert_allclose(a, b, check_dtype=check_dtype, **kwargs)
/home/mathause/code/xarray/xarray/testing.py:178: in assert_allclose
assert allclose, formatting.diff_array_repr(
/home/mathause/code/xarray/xarray/core/formatting.py:667: in diff_array_repr
if not equiv(a, b, check_dtype=check_dtype):
/home/mathause/code/xarray/xarray/testing.py:40: in _data_allclose_or_equiv
return duck_array_ops.allclose_or_equiv(
/home/mathause/code/xarray/xarray/core/duck_array_ops.py:249: in allclose_or_equiv
arr1 = asarray(arr1)
/home/mathause/code/xarray/xarray/core/duck_array_ops.py:184: in asarray
return data if is_duck_array(data) else xp.asarray(data)
/home/mathause/conda/envs/xarray_dev/lib/python3.8/site-packages/numpy/core/_asarray.py:102: in asarray
return array(a, dtype, copy=False, order=order)
/home/mathause/code/xarray/xarray/core/common.py:139: in __array__
return np.asarray(self.values, dtype=dtype)
/home/mathause/code/xarray/xarray/core/dataarray.py:634: in values
return self.variable.values
/home/mathause/code/xarray/xarray/core/variable.py:544: in values
return _as_array_or_item(self._data)
/home/mathause/code/xarray/xarray/core/variable.py:276: in _as_array_or_item
data = np.asarray(data)
/home/mathause/conda/envs/xarray_dev/lib/python3.8/site-packages/numpy/core/_asarray.py:102: in asarray
return array(a, dtype, copy=False, order=order)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <Quantity([[10. 10. 0. 0. 1. 2. 3.]
[10. 10. 4. 5. 6. 7. 8.]], 'millimeter')>, t = None
def __array__(self, t=None):
> warnings.warn(
"The unit of the quantity is stripped when downcasting to ndarray.",
UnitStrippedWarning,
stacklevel=2,
)
E pint.errors.UnitStrippedWarning: The unit of the quantity is stripped when downcasting to ndarray.
/home/mathause/conda/envs/xarray_dev/lib/python3.8/site-packages/pint/quantity.py:1683: UnitStrippedWarning
```
|
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
WIP: testing.assert_* check dtype 778069594 | |
754142883 | https://github.com/pydata/xarray/pull/4760#issuecomment-754142883 | https://api.github.com/repos/pydata/xarray/issues/4760 | MDEyOklzc3VlQ29tbWVudDc1NDE0Mjg4Mw== | dcherian 2448579 | 2021-01-04T18:36:52Z | 2021-01-04T18:36:52Z | MEMBER |
I suspect this is only for object arrays since you need not get back an object array? Maybe check in |
{ "total_count": 1, "+1": 1, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
WIP: testing.assert_* check dtype 778069594 |
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 3