We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1c7928b commit 0a83c7bCopy full SHA for 0a83c7b
tsinfer/__init__.py
@@ -18,10 +18,18 @@
18
#
19
"""
20
Tree sequence inference.
21
-
22
-Python 3 only.
23
24
import sys
+import warnings
+
25
+# tsinfer #957. This warning pops up as a result of using fast-math. It bascially means
26
+# that tiny tiny values are being rounded to zero, which should be fine for our purposes.
27
+warnings.filterwarnings(
28
+ "ignore",
29
+ message="The value of the smallest subnormal for <class 'numpy.float64'> "
30
+ "type is zero",
31
+)
32
33
34
if sys.version_info[0] < 3:
35
raise Exception("Python 3 only")
0 commit comments