def properties ( self ) : properties = { 'id' : self . _id } if self . _name is not None : properties [ 'name' ] = self . _name return properties
python how to document properties
All compartment properties as a dict .
def properties(self):
        """All compartment properties as a dict."""
        properties = {'id': self._id}
        if self._name is not None:
            properties['name'] = self._name

        return properties