Logo Search packages:      
Sourcecode: cclib version File versions  Download package

def cclib::parser::data::ccData::getattributes (   self,
  tolists = False 
)
Returns a dictionary of existing data attributes.

Inputs:
    tolists - flag to convert attributes to lists where applicable

Definition at line 158 of file data.py.

00158                                           :
        """Returns a dictionary of existing data attributes.
        
        Inputs:
            tolists - flag to convert attributes to lists where applicable
        """
    
        if tolists:
            self.listify()
        attributes = {}
        for attr in self._attrlist:
            if hasattr(self, attr):
                attributes[attr] = getattr(self,attr)
        if tolists:
            self.arrayofy()
        return attributes


Generated by  Doxygen 1.6.0   Back to index