Skip to content

Commit 07d976e

Browse files
committed
silence warnings from matplotlib prevent learner confusion
1 parent c756389 commit 07d976e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

files/snakemake-lesson/plotcount.py

+7
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
#!/usr/bin/env python
22

3+
######################################################################
4+
# Never do the following in the real world, warnings are important!
5+
# This silences warnings only to not confuse learners.
6+
import warnings
7+
warnings.filterwarnings("ignore")
8+
######################################################################
9+
310
import numpy as np
411
import matplotlib.pyplot as plt
512
import sys

0 commit comments

Comments
 (0)