-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
support for units with pint #3594
Comments
Thanks for leading this effort @keewis. I would start with the lowest-level operations like the constructors and
What does this mean? You can't have units in a IndexVariable? |
yes, we had that discussion from #525 (comment) on. Short version: |
Would #3643 be the best place to offer contributions at this point, or somewhere else? |
I think issues related to If you want to, I'd appreciate someone reviewing the tests in |
so, except from the major issues mentioned above which we won't be able to fix in the near future (but there will probably be workarounds in I don't think Edit: I guess the release is already big enough so I don't really mind waiting on the next release, but this is really close. |
@keewis Shall we close this? It seems the only outstanding one is |
#6873 might fix the We might want to open a new issue to get the known issues to work, though. |
pint
's implementation of NEP-18 (see hgrecco/pint#905) is close enough so we can finally start working on thepint
support (i.e. make the integration tests pass). This would be the list of tasks to get there:DataArray
,Dataset
and top-level functions (tests for arrays with units #3238, tests for datasets with units #3447, Tests for module-level functions with units #3493)Variable
as discussed in Tests for module-level functions with units #3493 (Tests for variables with units #3654)assert_identical
andassert_allclose
functions (Pint support for top-level functions #3611, Pint support for DataArray #3643, Tests for variables with units #3654, Pint support for variables #3706, pint support for Dataset #3975)TestVariable.test_pad
testsVariable
(Pint support for variables #3706)rolling_window
andidentical
need larger modificationsDataArray
(Pint support for DataArray #3643)Dataset
UnitStrippedWarnings
in the testsuite (silence UnitStrippedWarnings #4163)nanprod
to work with quantitiesrepr
with units (Feature request: show units in dataset overview #2773)np.maximum(data_array, quantity)
vsnp.maximum(quantity, data_array)
) (Consistent Handling of Type Casting Hierarchy #3950)UnitRegistry(force_ndarray=True)
orUnitRegistry(force_ndarray_like=True)
(see https://pint-xarray.readthedocs.io/en/stable/creation.html#attaching-units)pandas
(indexing)bottleneck
(bfill
,ffill
)scipy
(interp
)numbagg
(rolling_exp
)numpy.lib.stride_tricks.as_strided
:rolling
numpy.vectorize
:interpolate_na
update the install instructions (we can use standardthis should be done byconda
/pip
now)pint-xarray
The text was updated successfully, but these errors were encountered: