(self, params)
return output_dict
Populate a dictionary based on a list of parameters. 
        The parameters should already exist in this object.
Populate a dictionary based on a list of parameters. 
        The parameters should already exist in this object.
Populate a dictionary based on a list of parameters . The parameters should already exist in this object .
def _populate_dict(self, params):
        """
        Populate a dictionary based on a list of parameters. 
        The parameters should already exist in this object.
        """
        
        output_dict = {}
        
        for prop in params:
            if getattr(self, prop) is not None:
                output_dict[prop] = getattr(self, prop)
        
        return output_dict
def _populate_dict ( self , params ) : output_dict = { } for prop in params : if getattr ( self , prop ) is not None : output_dict [ prop ] = getattr ( self , prop ) return output_dict