File tree Expand file tree Collapse file tree 4 files changed +17
-6
lines changed Expand file tree Collapse file tree 4 files changed +17
-6
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ This page contains a auto-generated summary of ``pint-xarray``'s API.
6
6
:toctree: generated/
7
7
8
8
pint_xarray.unit_registry
9
+ pint_xarray.setup_registry
9
10
10
11
Dataset
11
12
-------
Original file line number Diff line number Diff line change @@ -42,6 +42,8 @@ What's new
42
42
By `Justus Magin <https://github.com/keewis >`_.
43
43
- implement :py:meth: `Dataset.pint.interpolate_na ` and :py:meth: `DataArray.pint.interpolate_na ` (:pull: `82 `).
44
44
By `Justus Magin <https://github.com/keewis >`_.
45
+ - expose :py:func: `pint_xarray.accessors.setup_registry ` as public API (:pull: `89 `)
46
+ By `Justus Magin <https://github.com/keewis >`_.
45
47
46
48
v0.1 (October 26 2020)
47
49
----------------------
Original file line number Diff line number Diff line change 5
5
6
6
import pint
7
7
8
- from . import testing # noqa: F401
9
- from . import formatting
10
- from .accessors import PintDataArrayAccessor , PintDatasetAccessor # noqa: F401
11
- from .accessors import default_registry as unit_registry # noqa: F401
8
+ from . import accessors , formatting , testing # noqa: F401
9
+ from .accessors import default_registry as unit_registry
10
+ from .accessors import setup_registry
12
11
13
12
try :
14
13
__version__ = version ("pint-xarray" )
19
18
20
19
21
20
pint .Quantity ._repr_inline_ = formatting .inline_repr
21
+
22
+
23
+ __all__ = [
24
+ "testing" ,
25
+ "unit_registry" ,
26
+ "setup_registry" ,
27
+ ]
Original file line number Diff line number Diff line change @@ -1033,7 +1033,8 @@ def interpolate_na(
1033
1033
):
1034
1034
"""unit-aware version of interpolate_na
1035
1035
1036
- Like :py:meth:`DataArray.interpolate_na` but without stripping the units on data or coordinates.
1036
+ Like :py:meth:`xarray.DataArray.interpolate_na` but without stripping the units
1037
+ on data or coordinates.
1037
1038
1038
1039
.. note::
1039
1040
``max_gap`` is not supported, yet, and will be passed through to
@@ -1794,7 +1795,8 @@ def interpolate_na(
1794
1795
):
1795
1796
"""unit-aware version of interpolate_na
1796
1797
1797
- Like :py:meth:`Dataset.interpolate_na` but without stripping the units on data or coordinates.
1798
+ Like :py:meth:`xarray.Dataset.interpolate_na` but without stripping the units on
1799
+ data or coordinates.
1798
1800
1799
1801
.. note::
1800
1802
``max_gap`` is not supported, yet, and will be passed through to
You can’t perform that action at this time.
0 commit comments