Justus Magin

Results 348 comments of Justus Magin

I'd probably favor a way that encodes the expected hierarchy using some kind of helper class (inspired by #11671, but not the same). Additional parameters that control how to match...

> If it is, I assume that this isn't: ```python with pytest.raises( Match( (ExceptionGroup, ValueError), [ ... ] ) ): ... ``` yes, that should raise (but the example before...

apologies for pinging and then forgetting about it for a year. I implemented the requested change, such that it will now warn on every missing empty line (between summary and...

As far as I can tell, `save` does two things: recursively compute the href for children / items, and actually save the object to disk. I wonder if it would...

closing, since I think it's actually better to use `.pint.dequantify()` for this (we might have to allow selectively dequantifying variables, though)

coming back to this, I think that `.pint.dequantify()` does what you are looking for, but we might want to allow selectively dequantifying just a subset of the variables instead. Edit:...

this has been fixed in `pint` and is part of `pint>=0.20`

yep, and there's even a backport package (we just can't use `except*` since that's new syntax). The only reason this is not implemented yet is that I couldn't find the...

@benbovy, with a few tweaks to your suggestions this: ```python In [1]: import xarray as xr ...: import pint_xarray ...: ...: ureg = pint_xarray.unit_registry ...: ds = xr.tutorial.open_dataset("air_temperature") ...: q...

(the failing tests are expected, I will have to update some of the workaround code)