File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change 77
88import os .path
99import warnings
10- import Bio .PDB .mmCIF .MMCIFlex
10+ import Bio .PDB .mmCIF .MMCIFlex as MMCIFlex
1111
1212
1313class MMCIF2Dict ():
@@ -27,11 +27,16 @@ def __init__(self, filename):
2727 self .data [None ]= []
2828 if not os .path .isfile (filename ):
2929 raise IOError ("File not found." )
30- Bio . PDB . mmCIF . MMCIFlex .open_file (filename )
30+ MMCIFlex .open_file (filename )
3131 self ._make_mmcif_dict ()
32- Bio . PDB . mmCIF . MMCIFlex .close_file ()
32+ MMCIFlex .close_file ()
3333
3434 def _make_mmcif_dict (self ):
35+ """
36+ Loop through PLY token (type, value) pairs.
37+ Store data in class dict named data.
38+
39+ """
3540 # local copies
3641 NAME = self .NAME
3742 LOOP = self .LOOP
@@ -40,7 +45,7 @@ def _make_mmcif_dict(self):
4045 DOUBLEQUOTED = self .DOUBLEQUOTED
4146 QUOTED = self .QUOTED
4247 SIMPLE = self .SIMPLE
43- get_token = Bio . PDB . mmCIF . MMCIFlex .get_token
48+ get_token = MMCIFlex .get_token
4449 # are we looping?
4550 loop_flag = 0
4651 # list of names in loop
You can’t perform that action at this time.
0 commit comments