Skip to content

Commit 2327969

Browse files
committed
fix(mtnetwork): add import check
try to import HyPhy before use in transmission_network.fit_degree_distribution closes veg#40
1 parent ccd648a commit 2327969

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

hivclustering/mtnetwork.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -2509,8 +2509,8 @@ def fit_degree_distribution(self, degree_option=None, hy_instance=None):
25092509
try:
25102510
import hppy as hy
25112511
except ImportError:
2512-
raise ImportError("Optional dependencies not found. please install the 'edgefiltering' extras to use this function: pip install hivclustering[edgefiltering]")
2513-
2512+
raise ImportError(
2513+
"Optional dependencies not found. Please install the 'edgefiltering' extras to use this function: pip install hivclustering[edgefiltering]")
25142514
hy_instance = hy.HyphyInterface()
25152515

25162516
script_path = os.path.realpath(__file__)

0 commit comments

Comments
 (0)