Skip to content

Commit

Permalink
let parser import even in nocython case
Browse files Browse the repository at this point in the history
  • Loading branch information
clami66 committed Mar 22, 2024
1 parent 301a69b commit 340258d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/DockQ/DockQ.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,18 @@
from Bio import Align
from Bio.SeqUtils import seq1
from Bio.SVDSuperimposer import SVDSuperimposer
from .parsers import PDBParser, MMCIFParser

# fallback in case the cython version doesn't work, though it will be slower
try:
from .operations import residue_distances, get_fnat_stats
from .parsers import PDBParser, MMCIFParser
except ImportError:
print(
"WARNING: It looks like cython is not working, \
falling back on native python. This will make DockQ slower"
"""WARNING: It looks like cython is not working,
falling back on native python. This will make DockQ slower"""
)
from operations_nocy import residue_distances, get_fnat_stats
from parsers import PDBParser, MMCIFParser


def parse_args():
Expand Down

0 comments on commit 340258d

Please sign in to comment.