Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
FastFold
Commits
50620db4
"src/git@developer.sourcefind.cn:chenpangpang/open-webui.git" did not exist on "3a2f1d56c85be89c4097c65ba4b36010c93fcfc1"
Unverified
Commit
50620db4
authored
Feb 18, 2023
by
LuGY
Committed by
GitHub
Feb 18, 2023
Browse files
optimze template error msg, avoid no hit probs case (#153)
parent
765c8e44
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
+2
-6
fastfold/data/templates.py
fastfold/data/templates.py
+2
-6
No files found.
fastfold/data/templates.py
View file @
50620db4
...
...
@@ -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
,
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment