Maximilian Roos

Results 502 comments of Maximilian Roos

@benbovy That looks v interesting. I think at the moment it would require a bit of work to validate normal xarray objects, is that right? (I'm looking at the `__init__`,...

The commentary in https://github.com/python/typing/issues/513, and @shoyer 's doc https://docs.google.com/document/d/1vpMse4c6DrWH5rq2tQSx3qwP_m_0lyn-Ij4WHqQqRHY/edit#heading=h.rkj7d39awayl are good & growing I'll close this as I think riding on those coattails - with the addition of names and...

> If people want more, here are some from a fresh compilation: https://paste.xinu.at/LnH/ Although it looks like we've regressed, 95% of those (by number, not necessarily effort) are pint

Update! Lots of plotting ones. Pint has had huge progress! ``` =============================== warnings summary =============================== /usr/share/miniconda/envs/xarray-tests/lib/python3.7/site-packages/_pytest/junitxml.py:446 /usr/share/miniconda/envs/xarray-tests/lib/python3.7/site-packages/_pytest/junitxml.py:446: PytestDeprecationWarning: The 'junit_family' default value will change to 'xunit2' in pytest 6.0. See:...

I agree this is harder that it should be. Here's one way: ```python In [28]: a.where(a.currency=='EUR', drop=True) Out[28]: array([20., 30.]) Coordinates: * country (country)

What's the easiest way to select on multiple values? Is it really this: ```python In [63]: da = xr.DataArray(np.random.rand(3,2), dims=list('ab'), coords={'c':(('a',),list('xyz'))}) In [64]: da.sel(a=(np.isin(da.c, list('xy')))) Out[64]: array([[0.383989, 0.174317], [0.698948, 0.815993]])...

Thanks for the suggestion. One issue here is that it's not round-trippable; i.e. it wouldn't get deserialized into an object on being loaded. To the extent people don't think that's...

Would we be happy to do without a deprecation cycle? I would vote lightly yes. (though partly because I think that would mean we did it sooner — if someone...

For sure @gcaria ! Thanks for finding that

If this is helpful to anyone, here are some configs I use to: a) avoid opening a browser b) avoid pushing to main This will push the current branch, and...