Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
tsoc
openmm
Commits
a6eccd99
Commit
a6eccd99
authored
Aug 10, 2015
by
Jason Swails
Browse files
Fix unit cell writing in PDBx/mmCIF files.
parent
4db8f48c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
wrappers/python/simtk/openmm/app/pdbxfile.py
wrappers/python/simtk/openmm/app/pdbxfile.py
+6
-6
No files found.
wrappers/python/simtk/openmm/app/pdbxfile.py
View file @
a6eccd99
...
...
@@ -240,12 +240,12 @@ class PDBxFile(object):
if
vectors
is
not
None
:
a
,
b
,
c
,
alpha
,
beta
,
gamma
=
computeLengthsAndAngles
(
vectors
)
RAD_TO_DEG
=
180
/
math
.
pi
print
(
'_cell.length_a %10.4f'
%
a
_length
*
10
,
file
=
file
)
print
(
'_cell.length_b %10.4f'
%
b
_length
*
10
,
file
=
file
)
print
(
'_cell.length_c %10.4f'
%
c
_length
*
10
,
file
=
file
)
print
(
'_cell.angle_alpha %10.4f'
%
alpha
*
RAD_TO_DEG
,
file
=
file
)
print
(
'_cell.angle_beta %10.4f'
%
beta
*
RAD_TO_DEG
,
file
=
file
)
print
(
'_cell.angle_gamma %10.4f'
%
gamma
*
RAD_TO_DEG
,
file
=
file
)
print
(
'_cell.length_a %10.4f'
%
(
a
*
10
)
,
file
=
file
)
print
(
'_cell.length_b %10.4f'
%
(
b
*
10
)
,
file
=
file
)
print
(
'_cell.length_c %10.4f'
%
(
c
*
10
)
,
file
=
file
)
print
(
'_cell.angle_alpha %10.4f'
%
(
alpha
*
RAD_TO_DEG
)
,
file
=
file
)
print
(
'_cell.angle_beta %10.4f'
%
(
beta
*
RAD_TO_DEG
)
,
file
=
file
)
print
(
'_cell.angle_gamma %10.4f'
%
(
gamma
*
RAD_TO_DEG
)
,
file
=
file
)
print
(
'##'
,
file
=
file
)
print
(
'loop_'
,
file
=
file
)
print
(
'_atom_site.group_PDB'
,
file
=
file
)
...
...
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