Adds default to kwarg "n" of get_weights