Skip to content

Commit

Permalink
Merge pull request #1298 from jamesmkrieger/ccealign_import_fix
Browse files Browse the repository at this point in the history
ccealign import try except
  • Loading branch information
SHZ66 authored Feb 7, 2021
2 parents 639c965 + 3c178fd commit 4ecdd87
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion prody/proteins/compare.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 4ecdd87

Please sign in to comment.