def METHOD_NAME(self):
    """
    Returns a Python dictionary containing all settings of
    this ColdElectrons object.
    """
    data = { 'type': self.type }
    if self.type == TYPE_PRESCRIBED:
        data['data'] = {
            'x': self.density,
            'r': self.radius,
            't': self.times
        }
    elif self.type == TYPE_SELFCONSISTENT:
        pass
    else:
        raise EquationException("n_cold: Unrecognized cold electron density type: {}".format(self.type))
    return data