Commit 593dce2
committed
Merge pull request #358 from effigies/numpy1.10
MRG: stride_tricks produces unbroadcastable array
A probable bug in numpy 1.10.1 causes an error when trying to broadcast an array constructed using stride tricks.
See : numpy/numpy#6491 for a full description.
To work round, set the stride_tricks array as read-only, so that numpy does not try and set the output to writeable - that is the step that appears to cause the error.2 files changed
+16
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
767 | 767 | | |
768 | 768 | | |
769 | 769 | | |
770 | | - | |
| 770 | + | |
| 771 | + | |
| 772 | + | |
| 773 | + | |
| 774 | + | |
771 | 775 | | |
772 | 776 | | |
773 | 777 | | |
774 | 778 | | |
775 | | - | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
639 | 639 | | |
640 | 640 | | |
641 | 641 | | |
642 | | - | |
643 | | - | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
644 | 650 | | |
645 | 651 | | |
646 | 652 | | |
| |||
0 commit comments