Commit c4c2fbd
* Add argument check_dims to assert_allclose to allow transposed inputs
* Update whats-new.rst
* Add `check_dims` argument to assert_equal and assert_identical + tests
* Assert that dimensions match before transposing or comparing values
* Add docstring for check_dims to assert_equal and assert_identical
* Update doc/whats-new.rst
Co-authored-by: Tom Nicholas <tom@cworthy.org>
* Undo fat finger
Co-authored-by: Tom Nicholas <tom@cworthy.org>
* Add attribution to whats-new.rst
* Replace check_dims with bool argument check_dim_order, rename align_dims to maybe_transpose_dims
* Remove left-over half-made test
* Remove check_dim_order argument from assert_identical
* assert_allclose/equal: emit full diff if dimensions don't match
* Rename check_dim_order test, test Dataset with different dim orders
* Update whats-new.rst
* Hide maybe_transpose_dims from Pytest traceback
Co-authored-by: Maximilian Roos <5635139+max-sixty@users.noreply.github.com>
* Ignore mypy error due to missing functools.partial.__name__
---------
Co-authored-by: Tom Nicholas <tom@cworthy.org>
Co-authored-by: Maximilian Roos <5635139+max-sixty@users.noreply.github.com>
1 parent f151a46 commit c4c2fbd
File tree
3 files changed
+46
-4
lines changed- doc
- xarray
- testing
- tests
3 files changed
+46
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
| 33 | + | |
32 | 34 | | |
33 | 35 | | |
34 | 36 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
98 | 110 | | |
99 | 111 | | |
100 | 112 | | |
| |||
104 | 116 | | |
105 | 117 | | |
106 | 118 | | |
107 | | - | |
| 119 | + | |
108 | 120 | | |
109 | 121 | | |
110 | 122 | | |
| |||
127 | 139 | | |
128 | 140 | | |
129 | 141 | | |
| 142 | + | |
| 143 | + | |
130 | 144 | | |
131 | 145 | | |
132 | 146 | | |
| |||
137 | 151 | | |
138 | 152 | | |
139 | 153 | | |
| 154 | + | |
140 | 155 | | |
141 | 156 | | |
142 | 157 | | |
| |||
182 | 197 | | |
183 | 198 | | |
184 | 199 | | |
| 200 | + | |
| 201 | + | |
185 | 202 | | |
186 | 203 | | |
187 | 204 | | |
| |||
213 | 230 | | |
214 | 231 | | |
215 | 232 | | |
216 | | - | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
217 | 236 | | |
218 | 237 | | |
219 | 238 | | |
| |||
233 | 252 | | |
234 | 253 | | |
235 | 254 | | |
| 255 | + | |
| 256 | + | |
236 | 257 | | |
237 | 258 | | |
238 | 259 | | |
239 | 260 | | |
240 | 261 | | |
241 | 262 | | |
242 | 263 | | |
| 264 | + | |
243 | 265 | | |
244 | 266 | | |
245 | 267 | | |
246 | 268 | | |
247 | | - | |
| 269 | + | |
248 | 270 | | |
249 | 271 | | |
250 | 272 | | |
251 | 273 | | |
252 | | - | |
253 | 274 | | |
254 | 275 | | |
255 | 276 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
60 | 79 | | |
61 | 80 | | |
62 | 81 | | |
| |||
0 commit comments