Commit ea050a8
committed
Fix conversion of non-crosspol power beams to real
Don't use np.real_if_close because it's flaky (seen to fail in Conda builds but not in our standard CI). Instead warn if the imaginary part is larger than expected (presumably because of floating point accuracy issues) and then force to real.1 parent f8a44d2 commit ea050a8
2 files changed
+18
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
| 8 | + | |
7 | 9 | | |
8 | 10 | | |
9 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
885 | 885 | | |
886 | 886 | | |
887 | 887 | | |
888 | | - | |
| 888 | + | |
| 889 | + | |
| 890 | + | |
| 891 | + | |
| 892 | + | |
| 893 | + | |
| 894 | + | |
| 895 | + | |
| 896 | + | |
| 897 | + | |
| 898 | + | |
| 899 | + | |
| 900 | + | |
| 901 | + | |
| 902 | + | |
| 903 | + | |
889 | 904 | | |
890 | 905 | | |
891 | 906 | | |
| |||
0 commit comments