Use numpy to get partition from given ordinals