Commit 9508117
Fix DataArray validation for upstream compatibility
- Skip coord validation for DataArray inputs in arithmetic contexts
(allow_extra_dims=True) to preserve xarray's native alignment
- Add allow_extra_dims=True to comparison operator and quadratic dot
as_dataarray calls for consistent broadcasting
- Handle MultiIndex levels in expand_dims guard
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent be93663 commit 9508117
2 files changed
Lines changed: 17 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
172 | 172 | | |
173 | 173 | | |
174 | 174 | | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
175 | 178 | | |
176 | 179 | | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | | - | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
184 | 188 | | |
185 | 189 | | |
186 | 190 | | |
| |||
240 | 244 | | |
241 | 245 | | |
242 | 246 | | |
243 | | - | |
244 | 247 | | |
245 | 248 | | |
246 | 249 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1146 | 1146 | | |
1147 | 1147 | | |
1148 | 1148 | | |
1149 | | - | |
| 1149 | + | |
| 1150 | + | |
| 1151 | + | |
1150 | 1152 | | |
1151 | 1153 | | |
1152 | 1154 | | |
| |||
2197 | 2199 | | |
2198 | 2200 | | |
2199 | 2201 | | |
2200 | | - | |
| 2202 | + | |
| 2203 | + | |
| 2204 | + | |
2201 | 2205 | | |
2202 | 2206 | | |
2203 | 2207 | | |
| |||
0 commit comments