Changeset View
Changeset View
Standalone View
Standalone View
io_mesh_pdb/import_pdb.py
| Context not available. | |||||
| if line[12:13] == " " or line[12:13].isdigit() == True: | if line[12:13] == " " or line[12:13].isdigit() == True: | ||||
| short_name = line[13:14] | short_name = line[13:14] | ||||
| if line[14:15].islower() == True: | if line[14:15].islower() == True: | ||||
| short_name = short_name + line[14:15] | short_name += line[14:15] | ||||
| elif line[12:13].isupper() == True: | elif line[12:13].isupper() == True: | ||||
| short_name = line[12:13] | short_name = line[12:13] | ||||
| if line[13:14].isalpha() == True: | if line[13:14].isalpha() == True: | ||||
| short_name = short_name + line[13:14] | short_name += line[13:14] | ||||
| else: | else: | ||||
| print("Atomic Blender: Strange error in PDB file.\n" | print("Atomic Blender: Strange error in PDB file.\n" | ||||
| "Look for element names at positions 13-16 and 78-79.\n") | "Look for element names at positions 13-16 and 78-79.\n") | ||||
| Context not available. | |||||