ENH raise error if type not properly set
COSMIT rename k_ -> k