Commit dd424ec5 authored by zhuww's avatar zhuww
Browse files

fix templates

parent 966884e2
...@@ -885,32 +885,27 @@ def _process_single_hit( ...@@ -885,32 +885,27 @@ def _process_single_hit(
# These 3 errors indicate missing mmCIF experimental data rather than a # These 3 errors indicate missing mmCIF experimental data rather than a
# problem with the template search, so turn them into warnings. # problem with the template search, so turn them into warnings.
# warning = ( warning = (
# "%s_%s (sum_probs: %.2f, rank: %d): feature extracting errors: " "%s_%s: feature extracting errors: "
# "%s, mmCIF parsing errors: %s" "%s, mmCIF parsing errors: %s"
# % ( % (
# hit_pdb_code, hit_pdb_code,
# hit_chain_id, hit_chain_id,
# hit.sum_probs, str(e),
# hit.index, parsing_result.errors,
# str(e), )
# parsing_result.errors, )
# )
# )
warning=None
if strict_error_check: if strict_error_check:
return SingleHitResult(features=None, error=warning, warning=None) return SingleHitResult(features=None, error=warning, warning=None)
else: else:
return SingleHitResult(features=None, error=None, warning=warning) return SingleHitResult(features=None, error=None, warning=warning)
except Error as e: except Error as e:
error = ( error = (
"%s_%s (sum_probs: %.2f, rank: %d): feature extracting errors: " "%s_%s: feature extracting errors: "
"%s, mmCIF parsing errors: %s" "%s, mmCIF parsing errors: %s"
% ( % (
hit_pdb_code, hit_pdb_code,
hit_chain_id, hit_chain_id,
hit.sum_probs,
hit.index,
str(e), str(e),
parsing_result.errors, 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