Commit 173488f
committed
Fixed deprecation warning about NumPy scalar construction
If the input Python object is out of range for the type being
created, a warning is issued, e.g. `np.int16(512*1024)`.
This commit implements the suggested work-around.1 parent 456f46f commit 173488f
1 file changed
+8
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
785 | 785 | | |
786 | 786 | | |
787 | 787 | | |
| 788 | + | |
| 789 | + | |
| 790 | + | |
| 791 | + | |
| 792 | + | |
| 793 | + | |
788 | 794 | | |
789 | 795 | | |
790 | 796 | | |
| |||
861 | 867 | | |
862 | 868 | | |
863 | 869 | | |
864 | | - | |
| 870 | + | |
865 | 871 | | |
866 | | - | |
| 872 | + | |
867 | 873 | | |
868 | 874 | | |
869 | 875 | | |
| |||
0 commit comments