Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
Commitfe4b36b
committed
Fix format_cursor_data with nans.
Without this fix, hovering the mouse over a nan pixel in an imshow()would result in `Warning: converting a masked element to nan.` and then`ValueError: cannot convert float NaN to integer`. Fix that.The format_cursor_data test doesn't explicitly check the return valueof get_cursor_data anymore because np.ma.masked is returned for naninputs (this is expected from the general approach for handling invaliddata); checking that format_cursor_data gives the right string issufficient.1 parenta35f108 commitfe4b36b
2 files changed
+3
-1
lines changedLines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1273 | 1273 |
| |
1274 | 1274 |
| |
1275 | 1275 |
| |
| 1276 | + | |
| 1277 | + | |
1276 | 1278 |
| |
1277 | 1279 |
| |
1278 | 1280 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
340 | 340 |
| |
341 | 341 |
| |
342 | 342 |
| |
| 343 | + | |
343 | 344 |
| |
344 | 345 |
| |
345 | 346 |
| |
| |||
349 | 350 |
| |
350 | 351 |
| |
351 | 352 |
| |
352 |
| - | |
353 | 353 |
| |
354 | 354 |
| |
355 | 355 |
| |
|
0 commit comments
Comments
(0)