From 23279699bc4a680ae293037c5730867ade3fc540 Mon Sep 17 00:00:00 2001 From: Fynn Freyer Date: Tue, 22 Aug 2023 19:37:32 +0200 Subject: [PATCH] fix(mtnetwork): add import check try to import HyPhy before use in transmission_network.fit_degree_distribution closes #40 --- hivclustering/mtnetwork.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hivclustering/mtnetwork.py b/hivclustering/mtnetwork.py index e5a823b..0a77269 100644 --- a/hivclustering/mtnetwork.py +++ b/hivclustering/mtnetwork.py @@ -2509,8 +2509,8 @@ def fit_degree_distribution(self, degree_option=None, hy_instance=None): try: import hppy as hy except ImportError: - raise ImportError("Optional dependencies not found. please install the 'edgefiltering' extras to use this function: pip install hivclustering[edgefiltering]") - + raise ImportError( + "Optional dependencies not found. Please install the 'edgefiltering' extras to use this function: pip install hivclustering[edgefiltering]") hy_instance = hy.HyphyInterface() script_path = os.path.realpath(__file__)