Commit 4b8c3253 authored by VIGNET Pierre's avatar VIGNET Pierre
Browse files

[cmd] Conditional imports for seaborn and pandas

parent 0641e8be
......@@ -31,8 +31,17 @@ import glob
import csv
from concurrent.futures import ProcessPoolExecutor, as_completed
import multiprocessing as mp
import pandas as pd
import seaborn as sns
try:
import pandas as pd
import seaborn as sns
except ImportError:
print(
"ImportError: 'seaborn' and 'pandas' packages are required for this task;\n"
"You might want to install 'cadbiom_cmd' with the following command:\n"
"'pip install cadbiom_cmd[heatmaps]'"
)
raise
# Library imports
from tools.solutions import get_all_macs
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment