Skip to content
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

pint support for Dataset #3975

Merged
merged 60 commits into from
Jun 17, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
60 commits
Select commit Hold shift + click to select a range
730e1d5
remove the xfail marks from all aggregations except prod and np.median
keewis Apr 15, 2020
8da6249
rewrite the aggregation tests
keewis Apr 15, 2020
78cbffa
rewrite the repr tests
keewis Apr 15, 2020
3f362da
rewrite some more tests
keewis Apr 15, 2020
c0ea8db
simplify the numpy-method-with-args tests
keewis Apr 16, 2020
34ee647
always use the same data units unless the compatibility is tested
keewis Apr 16, 2020
d16fda6
partially rewrite more tests
keewis Apr 16, 2020
13a312e
rewrite combine_first
keewis Apr 17, 2020
36643a4
simplify the comparisons test a bit
keewis Apr 17, 2020
2fcc3aa
skip the tests for identical
keewis Apr 17, 2020
154121e
remove the map_values function
keewis Apr 18, 2020
47df83f
only call convert_units if necessary
keewis Apr 18, 2020
daf5278
use assert_units_equal and assert_equal in broadcast_like and skip it
keewis Apr 18, 2020
b1b04aa
remove the conditional skip since pint now supports __array_function__
keewis Apr 28, 2020
3e125cc
only skip the broadcast_like tests if we attempt to put units in indexes
keewis Apr 28, 2020
94d5016
remove the xfail mark from the where tests
keewis Apr 28, 2020
a22bae0
reimplement the broadcast_equals tests
keewis Apr 28, 2020
42df3b0
reimplement the tests on stacked arrays
keewis Apr 28, 2020
d7c8b10
refactor the to_stacked_array tests
keewis Apr 28, 2020
ab3e14c
fix the stacking and reordering tests
keewis Apr 28, 2020
fb90687
don't create a coordinate for the isel tests
keewis Apr 28, 2020
e98c09b
separate the tests for units in dims from the tests for units in data
keewis Apr 29, 2020
85dcf40
Merge branch 'master' into pint-support-dataset
keewis Apr 30, 2020
3cb2c76
refactor the dataset constructor tests
keewis May 26, 2020
d6626eb
fix the repr tests
keewis May 26, 2020
afdb632
raise on all warnings
keewis May 26, 2020
3ac99e3
rename merge_mappings to zip_mappings
keewis May 26, 2020
cc0d03f
rename merge_dicts to merge_mappings
keewis May 26, 2020
0a7e172
make the missing value filling tests raise on warnings
keewis May 26, 2020
0469bc6
remove a leftover assert_equal_with_units
keewis May 26, 2020
6ee9d84
refactor the sel tests
keewis May 26, 2020
cd6628d
make the loc tests a slightly modified copy of the sel tests
keewis May 26, 2020
122355c
make the drop_sel tests a slightly modified version of the sel tests
keewis May 26, 2020
a38e70c
refactor the head / tail / thin tests
keewis May 26, 2020
e01cbb9
refactor the squeeze tests to not have multiple tests per case
keewis May 26, 2020
7f88234
Merge branch 'master' into pint-support-dataset
keewis May 26, 2020
37dcd50
skip the head / tail / thin tests with units in dimensions
keewis May 26, 2020
2ab44b3
combine the interp and reindex tests
keewis May 26, 2020
a0936c8
combine the interp_like and reindex_like tests
keewis May 26, 2020
b7992c6
refactor the computation tests
keewis May 26, 2020
9f82fbc
rewrite the computation objects tests
keewis May 26, 2020
4cf2ec9
rewrite the resample tests
keewis May 26, 2020
2e16809
rewrite the grouped operations tests
keewis May 26, 2020
0242a13
rewrite the content manipulation tests
keewis May 26, 2020
e52707c
refactor the merge tests
keewis May 26, 2020
58d5bb1
remove the old assert_equal_with_units function
keewis May 26, 2020
fec4b9f
xfail the groupby_bins tests for now
keewis May 27, 2020
1a50af8
fix and use allclose
keewis May 27, 2020
cbeb8c6
filterwarnings for the whole TestDataset class
keewis May 27, 2020
980839f
modify the squeeze tests to not use units in indexes
keewis May 27, 2020
29b9250
replace skip with xfail
keewis May 27, 2020
bee7504
update whats-new.rst
keewis May 27, 2020
918fdd8
update the xfail reason for the rolling_exp tests
keewis May 27, 2020
c27a393
temporarily use pip to install pint
keewis Jun 1, 2020
41fe293
Merge branch 'master' into pint-support-dataset
keewis Jun 14, 2020
a891834
don't use pip to install pint
keewis Jun 14, 2020
9a5d5fe
update the xfail to require at least 0.12.1
keewis Jun 17, 2020
4463bf4
xfail the prod tests
keewis Jun 17, 2020
94138a0
filter only UnitStrippedWarning
keewis Jun 17, 2020
91b95a4
remove unncessary commas
keewis Jun 17, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ci/requirements/py36-min-nep18.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ dependencies:
- msgpack-python=0.6 # remove once distributed is bumped. distributed GH3491
- numpy=1.17
- pandas=0.25
- pint=0.11
- pint
- pip
- pytest
- pytest-cov
Expand Down
2 changes: 1 addition & 1 deletion doc/whats-new.rst
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ New Features
- Support dask handling for :py:meth:`DataArray.idxmax`, :py:meth:`DataArray.idxmin`,
:py:meth:`Dataset.idxmax`, :py:meth:`Dataset.idxmin`. (:pull:`3922`)
By `Kai Mühlbauer <https://github.com/kmuehlbauer>`_.
- More support for unit aware arrays with pint (:pull:`3643`)
- More support for unit aware arrays with pint (:pull:`3643`, :pull:`3975`)
By `Justus Magin <https://github.com/keewis>`_.
- Support overriding existing variables in ``to_zarr()`` with ``mode='a'`` even
without ``append_dim``, as long as dimension sizes do not change.
Expand Down
Loading