Skip to content

Commit

Permalink
add imports module
Browse files Browse the repository at this point in the history
  • Loading branch information
anas-rz committed Mar 1, 2024
1 parent f900919 commit 560f580
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions k3_addons/utils/imports.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# create a variable and check if pysoti is available and return a constant PYSOTI_AVAILABLE

try:
import pystoi

PYSOTI_AVAILABLE = True
except ImportError:
PYSOTI_AVAILABLE = False

try:
import pesq

PESQ_AVAILABLE = True
except ImportError:
PESQ_AVAILABLE = False

try:
import multiprocessing

MULTIPROCESSING_AVAILABLE = True
except ImportError:
MULTIPROCESSING_AVAILABLE = False

0 comments on commit 560f580

Please sign in to comment.