Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openstructure
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
schwede
openstructure
Commits
52adb09c
Verified
Commit
52adb09c
authored
1 year ago
by
Xavier Robin
Browse files
Options
Downloads
Patches
Plain Diff
fix: fail early and clearly with quote chain names
parent
323fe2b6
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/mol/alg/pymod/scoring.py
+4
-0
4 additions, 0 deletions
modules/mol/alg/pymod/scoring.py
with
4 additions
and
0 deletions
modules/mol/alg/pymod/scoring.py
+
4
−
0
View file @
52adb09c
...
...
@@ -179,11 +179,15 @@ class Scorer:
for
ch
in
self
.
_model
.
chains
:
if
ch
.
GetName
().
strip
()
==
""
:
raise
RuntimeError
(
"
Model chains must have valid chain names
"
)
if
ch
.
GetName
().
strip
()
==
"'"
or
ch
.
GetName
().
strip
()
==
'"'
:
raise
RuntimeError
(
"
Model chains cannot be named with quote signs (
'
or
\"\"
)
"
)
# catch targets which have empty chain names
for
ch
in
self
.
_target
.
chains
:
if
ch
.
GetName
().
strip
()
==
""
:
raise
RuntimeError
(
"
Target chains must have valid chain names
"
)
if
ch
.
GetName
().
strip
()
==
"'"
or
ch
.
GetName
().
strip
()
==
'"'
:
raise
RuntimeError
(
"
Target chains cannot be named with quote signs (
'
or
\"\"
)
"
)
if
resnum_alignments
:
# In case of resnum_alignments, we have some requirements on
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment