def is_number_or_len_one_array(number):
    """Deterimine if a given value is either, one, a python numerical primative
    (int or float), or two, a numpy array of length one.

    PARAMETERS
    ----------

        number, float,int or np.ndarray
            The object to check for singluarness
    
    RETURNS
    -------

        is_single_value, bool
            True if the object is a float or int, or a numpy array of length
            one. False otherwise
    """
    try:
        l = number.size
        if l != 1:
            return False
        else:
            return True
    except AttributeError:
        if isinstance(number,int) or isinstance(number,float):
            return True
        else:
            return False