Skip to content

Commit 43c8e41

Browse files
authored
Merge pull request #357 from PaddlePaddle/template_error_fix
Fix syntax errors during template feature extraction.
2 parents 82ee80a + b8a8356 commit 43c8e41

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apps/protein_folding/helixfold3/helixfold/data/templates.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -817,7 +817,7 @@ def _process_single_hit(
817817
TemplateAtomMaskAllZerosError) as e:
818818
# These 3 errors indicate missing mmCIF experimental data rather than a
819819
# problem with the template search, so turn them into warnings.
820-
warning = ('%s_%s (sum_probs: %.2f, rank: %d): feature extracting errors: '
820+
warning = ('%s_%s (sum_probs: %s, rank: %s): feature extracting errors: '
821821
'%s, mmCIF parsing errors: %s'
822822
% (hit_pdb_code, hit_chain_id, hit.sum_probs, hit.index,
823823
str(e), parsing_result.errors))
@@ -826,7 +826,7 @@ def _process_single_hit(
826826
else:
827827
return SingleHitResult(features=None, error=None, warning=warning)
828828
except Error as e:
829-
error = ('%s_%s (sum_probs: %.2f, rank: %d): feature extracting errors: '
829+
error = ('%s_%s (sum_probs: %s, rank: %s): feature extracting errors: '
830830
'%s, mmCIF parsing errors: %s'
831831
% (hit_pdb_code, hit_chain_id, hit.sum_probs, hit.index,
832832
str(e), parsing_result.errors))

0 commit comments

Comments
 (0)