Skip to content

Commit

Permalink
Name the split models with 3 digits instead of 1
Browse files Browse the repository at this point in the history
  • Loading branch information
pkoukos committed Mar 16, 2017
1 parent 00f2bbc commit f129382
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pdb_splitmodel.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ def _extract_models(fhandle):
output_handle.write(line)
elif line.startswith('MODEL'):
model_no = line.split()[-1]
model_no = '{0:03d}'.format(int(model_no))
output_handle = open(fname_root + '_' + model_no + '.pdb', 'w')
elif line.startswith('ENDMDL'):
output_handle.write('END\n')
Expand Down

0 comments on commit f129382

Please sign in to comment.