Skip to content

Commit

Permalink
Removed redundant > from coords_io.py
Browse files Browse the repository at this point in the history
Right align is the default for format, > removed.
  • Loading branch information
chriswhittleston committed Dec 3, 2014
1 parent 70d78ec commit c4e2fbc
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 c4e2fbc

Please sign in to comment.