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
09d0cb66
Commit
09d0cb66
authored
14 years ago
by
Tobias Schmidt
Committed by
Marco Biasini
14 years ago
Browse files
Options
Downloads
Patches
Plain Diff
update msms unit test
parent
3bbc0942
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/bindings/tests/test_msms.py
+12
-6
12 additions, 6 deletions
modules/bindings/tests/test_msms.py
with
12 additions
and
6 deletions
modules/bindings/tests/test_msms.py
+
12
−
6
View file @
09d0cb66
...
...
@@ -7,20 +7,26 @@ class TestMSMSBindings(unittest.TestCase):
def
setUp
(
self
):
self
.
protein
=
io
.
LoadEntity
(
"
testfiles/testprotein.pdb
"
)
self
.
num_tri
=
45360
self
.
num_vert
=
22670
self
.
ases
=
19336.730
self
.
asas
=
21179.932
self
.
num_tri
=
111546
self
.
num_vert
=
55762
self
.
ases
=
20051.928
self
.
asas
=
21574.324
def
testCalculateSurface
(
self
):
surf
=
msms
.
CalculateSurface
(
self
.
protein
,
msms_env
=
'
MSMSSERVER
'
)[
0
]
surf
=
msms
.
CalculateSurface
(
self
.
protein
,
msms_env
=
'
MSMSSERVER
'
,
density
=
3
,
radius
=
1.4
)[
0
]
assert
self
.
num_vert
==
len
(
surf
.
GetVertexIDList
())
\
and
self
.
num_tri
==
len
(
surf
.
GetTriIDList
()),
\
"
Number of surface vertices (%i) or triangles (%i) do not match precalculated values (%i/%i)
"
%
(
len
(
surf
.
GetVertexIDList
()),
len
(
surf
.
GetTriIDList
()),
self
.
num_vert
,
self
.
num_tri
)
def
testCalculateSurfaceAres
(
self
):
(
msms_ases
,
msms_asas
)
=
msms
.
CalculateSurfaceArea
(
self
.
protein
,
\
msms_env
=
'
MSMSSERVER
'
)
msms_env
=
'
MSMSSERVER
'
,
density
=
3
,
radius
=
1.4
)
assert
self
.
ases
==
msms_ases
[
0
]
and
self
.
asas
==
msms_asas
[
0
],
\
"
SASA (%f) or SESA (%f) do not match precalculated values (%f/%f)
"
%
(
msms_asas
[
0
],
msms_ases
[
0
],
self
.
asas
,
self
.
ases
)
...
...
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