Commit dd424ec5 authored by zhuww's avatar zhuww
Browse files

fix templates

parent 966884e2
......@@ -885,32 +885,27 @@ def _process_single_hit(
# These 3 errors indicate missing mmCIF experimental data rather than a
# problem with the template search, so turn them into warnings.
# warning = (
# "%s_%s (sum_probs: %.2f, rank: %d): feature extracting errors: "
# "%s, mmCIF parsing errors: %s"
# % (
# hit_pdb_code,
# hit_chain_id,
# hit.sum_probs,
# hit.index,
# str(e),
# parsing_result.errors,
# )
# )
warning=None
warning = (
"%s_%s: feature extracting errors: "
"%s, mmCIF parsing errors: %s"
% (
hit_pdb_code,
hit_chain_id,
str(e),
parsing_result.errors,
)
)
if strict_error_check:
return SingleHitResult(features=None, error=warning, warning=None)
else:
return SingleHitResult(features=None, error=None, warning=warning)
except Error as e:
error = (
"%s_%s (sum_probs: %.2f, rank: %d): feature extracting errors: "
"%s_%s: feature extracting errors: "
"%s, mmCIF parsing errors: %s"
% (
hit_pdb_code,
hit_chain_id,
hit.sum_probs,
hit.index,
str(e),
parsing_result.errors,
)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment