Quick Sanity check for Mac OS look for accelerate build bugs. Testing numpy polyfit calls init_dgelsd(LAPACK)
()
| 375 | del _sanity_check |
| 376 | |
| 377 | def _mac_os_check(): |
| 378 | """ |
| 379 | Quick Sanity check for Mac OS look for accelerate build bugs. |
| 380 | Testing numpy polyfit calls init_dgelsd(LAPACK) |
| 381 | """ |
| 382 | try: |
| 383 | c = array([3., 2., 1.]) |
| 384 | x = linspace(0, 2, 5) |
| 385 | y = polyval(c, x) |
| 386 | _ = polyfit(x, y, 2, cov=True) |
| 387 | except ValueError: |
| 388 | pass |
| 389 | |
| 390 | if sys.platform == "darwin": |
| 391 | from . import exceptions |
no test coverage detected