Split NMR-style multiple model pdb files into individual models: Difference between revisions

Jump to navigation Jump to search
mNo edit summary
(noticed '' was not showing on wiki page, so changed empty string to double quotes "")
Line 64: Line 64:
           # reset everything for next model
           # reset everything for next model
           model_number += 1
           model_number += 1
           new_file_text = ''
           new_file_text = ""
       elif not line.startswith("MODEL"):
       elif not line.startswith("MODEL"):
           new_file_text += line + '\n'
           new_file_text += line + '\n'