def attr_from_obj(obj, name):
    """Return the value of the attribute name.

    Parameters
    ----------
    obj: object
        Object with attribute name
    name: str
        Attribute name to return
    """
    return getattr(obj, name)
