Commit 533e5fb
committed
geo.py: fix divide-by-zero warning in Aitoff transform
An attempt to do this had been make by masking zero values
in the denominator; but at least with current numpy, this is
not enough, because the __div__ method of the first argument
is used. The solution is to ensure that the first argument
is also a masked array.1 parent 1391ad0 commit 533e5fb
1 file changed
Lines changed: 6 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
271 | 271 | | |
272 | 272 | | |
273 | 273 | | |
274 | | - | |
| 274 | + | |
275 | 275 | | |
| 276 | + | |
| 277 | + | |
276 | 278 | | |
277 | 279 | | |
278 | 280 | | |
279 | | - | |
280 | | - | |
281 | | - | |
282 | | - | |
283 | | - | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
284 | 284 | | |
285 | 285 | | |
286 | 286 | | |
| |||
0 commit comments