From 3c178fda27960749749d4a73f2d58f7f14f631ff Mon Sep 17 00:00:00 2001 From: James Krieger Date: Fri, 5 Feb 2021 12:06:05 +0000 Subject: [PATCH] ccealign import try except --- prody/proteins/compare.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/prody/proteins/compare.py b/prody/proteins/compare.py index 142e5f604..eb3057d6c 100644 --- a/prody/proteins/compare.py +++ b/prody/proteins/compare.py @@ -1379,7 +1379,12 @@ def _findAlignment(sequence, alignment): return amatch, bmatch, n_match, n_mapped def getCEAlignMapping(target, chain): - from .ccealign import ccealign + try: + from .ccealign import ccealign + except: + LOGGER.warn('Could not import ccealign C/C++ extension.' + 'It may not be installed properly.') + return None tar_coords = target.getCoords().tolist() mob_coords = chain.getCoords().tolist()