Unverified Commit 50620db4 authored by LuGY's avatar LuGY Committed by GitHub
Browse files

optimze template error msg, avoid no hit probs case (#153)

parent 765c8e44
......@@ -885,13 +885,11 @@ 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_%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,
)
......@@ -902,13 +900,11 @@ def _process_single_hit(
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