fixes #2065
Merge pull request #2066 from tshauck/fix_np_ones

BUG: Add missing namespace. Closes #2065.