Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 17 additions & 5 deletions epyt/epanet.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,23 @@
from shutil import copyfile
from types import SimpleNamespace

import matplotlib as mpl
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
from matplotlib import cm

try:
import matplotlib as mpl
import matplotlib.pyplot as plt
from matplotlib import cm
except ImportError:
warnings.warn("matplotlib is not installed. Plotting functions will not work.")

try:
import numpy as np
except ImportError:
warnings.warn("numpy is not installed. Some functions will not work.")

try:
import pandas as pd
except ImportError:
warnings.warn("pandas is not installed. Excel functions will not work.")

epyt_root = str(files("epyt"))

Expand Down