From 0b9f2099deb3d9c01ce511dc516c16f1864364c8 Mon Sep 17 00:00:00 2001 From: kp992 Date: Sat, 8 Jun 2024 18:37:25 +0530 Subject: [PATCH 1/2] Fix OMP warning coming from numba --- quantecon/__init__.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/quantecon/__init__.py b/quantecon/__init__.py index b61867e7..1d8c6439 100644 --- a/quantecon/__init__.py +++ b/quantecon/__init__.py @@ -5,6 +5,13 @@ __version__ = '0.7.2' +### Silent the upstream(openmp via numba) warnings +### The following flag silents the warning: +### OMP: Info #276: omp_set_nested routine deprecated, please use omp_set_max_active_levels instead. +### For more details see: https://github.com/QuantEcon/QuantEcon.py/issues/627 +import os +os.environ['KMP_WARNINGS'] = 'off' + try: import numba except: From 766370ffda310823f1562d1333de88a3f776fadf Mon Sep 17 00:00:00 2001 From: kp992 Date: Sat, 8 Jun 2024 18:41:30 +0530 Subject: [PATCH 2/2] fix pep8 --- quantecon/__init__.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/quantecon/__init__.py b/quantecon/__init__.py index 1d8c6439..42833069 100644 --- a/quantecon/__init__.py +++ b/quantecon/__init__.py @@ -5,10 +5,9 @@ __version__ = '0.7.2' -### Silent the upstream(openmp via numba) warnings -### The following flag silents the warning: -### OMP: Info #276: omp_set_nested routine deprecated, please use omp_set_max_active_levels instead. -### For more details see: https://github.com/QuantEcon/QuantEcon.py/issues/627 +# Silent the upstream(openmp via numba) warnings +# The following flag is used to silent the warning. +# For more details see: https://github.com/QuantEcon/QuantEcon.py/issues/627 import os os.environ['KMP_WARNINGS'] = 'off'