biopython/biopython — pull request #36 by lennax (2012-04-24 17:53:37+00:00)
Title: Fix: Multiple MMCIF models: store real id as serial

Fixes to handling of multiple models in MMCIF

Store and retrieve models by 0 index, autoincremented model_id.

Store real model id as serial_num. Raise PDBConstructionException if model id is not a number.

Restored unit test to retrieve by zero index. Added to unit test to check that serial_num is stored.

Also, element is an optional argument to StructureBuilder init_atom, so I made element an optional parameter for MMCIFParser.