-
-
Notifications
You must be signed in to change notification settings - Fork 8k
Commit 29ce2c2
FIX: fix check_1d to also check for ndim
Arrays sometimes don't have all the methods arrays should have, so
add another check here. Plot requires both ndim and shape and this
will extract the numpy array if x does not have those attributes.
Otherwise leave the object alone, because unit support (currently only
in plot) requires the object to retain the unit info.1 parent f8cd2c9 commit 29ce2c2
2 files changed
+25
-1
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1333 | 1333 |
| |
1334 | 1334 |
| |
1335 | 1335 |
| |
1336 | - | ||
1336 | + | ||
1337 | + | ||
1338 | + | ||
1339 | + | ||
1340 | + | ||
1341 | + | ||
1337 | 1342 |
| |
1338 | 1343 |
| |
1339 | 1344 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
264 | 264 |
| |
265 | 265 |
| |
266 | 266 |
| |
267 | + | ||
268 | + | ||
269 | + | ||
270 | + | ||
271 | + | ||
272 | + | ||
273 | + | ||
274 | + | ||
275 | + | ||
276 | + | ||
277 | + | ||
278 | + | ||
279 | + | ||
280 | + | ||
281 | + | ||
282 | + | ||
283 | + | ||
284 | + | ||
285 | + |
0 commit comments