Commit 62bbc3c
committed
A more principled approach to avoiding the matplotlib problem -
The alternative would be to cast the object to a 3D Quantities array, but I think that would be unexpected behaviour.x[:, None] adds an empty dimension to a NumPy array x. This doesn't make sense for AnalogSignal, which can only be 2D, so we raise an IndexError.1 parent 3f328cf commit 62bbc3c
2 files changed
+6
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
265 | 265 | | |
266 | 266 | | |
267 | 267 | | |
268 | | - | |
269 | | - | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
270 | 273 | | |
271 | 274 | | |
272 | 275 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
640 | 640 | | |
641 | 641 | | |
642 | 642 | | |
643 | | - | |
644 | | - | |
| 643 | + | |
645 | 644 | | |
646 | 645 | | |
647 | 646 | | |
| |||
0 commit comments