-
-
Notifications
You must be signed in to change notification settings - Fork 290
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
replace windows/mac m1 checks with float128 check
- Loading branch information
1 parent
0b71f9e
commit 29392c4
Showing
5 changed files
with
21 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,7 @@ | ||
"""System/OS global variables.""" | ||
"""Global variables relating to OS.""" | ||
|
||
import platform | ||
import numpy as np | ||
|
||
WINDOWS_PLATFORM = platform.system() == "Windows" | ||
MAC_M1_PLATFORM = ( | ||
platform.platform() == "Darwin" and platform.machine().startswith("arm") | ||
) | ||
# Windows and Mac M1 don't support floats of this precision: | ||
# https://github.com/pandera-dev/pandera/issues/623 | ||
FLOAT_128_AVAILABLE = hasattr(np, "float128") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters