Skip to content

Commit

Permalink
ccealign import try except
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesmkrieger committed Feb 5, 2021
1 parent 2be68c2 commit 3c178fd
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 3c178fd

Please sign in to comment.