Skip to content

Commit

Permalink
Merge pull request #4 from chriswhittleston/coords_io-fix
Browse files Browse the repository at this point in the history
Removed redundant > from coords_io.py
  • Loading branch information
Kyle Sutherland-Cash committed Dec 3, 2014
2 parents 70d78ec + c4e2fbc commit 4854526
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions playground/amber/coords_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def write_inpcrd(coords, inpcrd_filename, name=None):
# Print OS-specific newline character.
inpcrd_file.write(os.linesep)
# Print the number of atoms.
inpcrd_file.write('{:> 5d}'.format(len(coords) / 3))
inpcrd_file.write('{:5d}'.format(len(coords) / 3))
inpcrd_file.write(os.linesep)
# Now loop through coords.
for index in range(0, len(coords), 6):
Expand All @@ -36,4 +36,4 @@ def write_inpcrd(coords, inpcrd_filename, name=None):
write_inpcrd(coords, 'my_test_file_15', '5_ATOMS')
# Test with even number of atoms
coords = np.random.random(18) - 0.5
write_inpcrd(coords, 'my_test_file_18', '6_ATOMS')
write_inpcrd(coords, 'my_test_file_18', '6_ATOMS')

0 comments on commit 4854526

Please sign in to comment.