Convert a sequence to a float array; if input was a masked array, masked values are converted to nans.
(x)
| 1397 | |
| 1398 | |
| 1399 | def _to_unmasked_float_array(x): |
| 1400 | """ |
| 1401 | Convert a sequence to a float array; if input was a masked array, masked |
| 1402 | values are converted to nans. |
| 1403 | """ |
| 1404 | if hasattr(x, 'mask'): |
| 1405 | return np.ma.asanyarray(x, float).filled(np.nan) |
| 1406 | else: |
| 1407 | return np.asanyarray(x, float) |
| 1408 | |
| 1409 | |
| 1410 | def _check_1d(x): |
no outgoing calls
no test coverage detected
searching dependent graphs…