From f1293820e44b26e72032b508773f01763e312ed6 Mon Sep 17 00:00:00 2001 From: pkoukos Date: Thu, 16 Mar 2017 11:57:41 +0100 Subject: [PATCH] Name the split models with 3 digits instead of 1 --- pdb_splitmodel.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pdb_splitmodel.py b/pdb_splitmodel.py index 943ff522..701aa785 100755 --- a/pdb_splitmodel.py +++ b/pdb_splitmodel.py @@ -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')