Please sign in to comment.
Use urlretrieve to smartly download PDB archives
Reading the entire contents into memory with urlopen is a bad idea. With large crystal structures, it can result in saving an incomplete .gz archive (raising an Exception on retrieve_pdb_file). Let urllib handle downloading the file instead.
- Loading branch information...