@pimms.param<EOL><INDENT>def weights(w):<DEDENT>
if w is None: return None<EOL>w = pimms.imm_array(w)<EOL>assert(pimms.is_vector(w, '<STR_LIT>'))<EOL>return w<EOL>
curve.weights are the weights passed to splrep for a given curve.