Skip to content
Snippets Groups Projects
Verified Commit 871bbea3 authored by Tamas Gal's avatar Tamas Gal :speech_balloon:
Browse files

Supress OpenMP warning coming from numba

parent 3b4ca301
No related branches found
No related tags found
No related merge requests found
Pipeline #29360 passed with warnings
......@@ -3,6 +3,12 @@ from pkg_resources import get_distribution, DistributionNotFound
version = get_distribution(__name__).version
import warnings
import os
# Getting rid of OpenMP warnings, related to Numba
# See: https://github.com/numba/numba/issues/5275
# This needs to be done before import numpy
os.environ["KMP_WARNINGS"] = "off"
with warnings.catch_warnings():
for warning_category in (FutureWarning, DeprecationWarning):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment