Skip to content

Commit acde229

Browse files
committed
Suppress all unnecessary warnings
1 parent ccb38d8 commit acde229

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

utils/poser.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@
2020
from utils.analysis import calculate_distance
2121
from utils.configloader import MODEL_ORIGIN, MODEL_NAME, MODEL_PATH, ALL_BODYPARTS
2222

23+
# suppressing unnecessary warnings
24+
import warnings
25+
warnings.simplefilter(action='ignore', category=FutureWarning)
26+
warnings.simplefilter(action='ignore', category=DeprecationWarning)
2327

2428
# trying importing functions using deeplabcut module, if DLC 2 is installed correctly
2529
if MODEL_ORIGIN in ('DLC', 'MADLC'):

0 commit comments

Comments
 (0)