@pimms.param<EOL><INDENT>def parameters(params):<DEDENT>
if not pimms.is_pmap(params): params = pyr.pmap(params)<EOL>scale = params['<STR_LIT>']<EOL>if pimms.is_number(scale):<EOL><INDENT>params = params.set('<STR_LIT>', (scale, scale))<EOL><DEDENT>elif not is_tuple(scale):<EOL><INDENT>params = params.set('<STR_LIT>', tuple(scale))<EOL><DEDENT>shear = params['<STR_LIT>']<EOL>if pimms.is_number(shear) and np.isclose(shear, <NUM_LIT:0>):<EOL><INDENT>params = params.set('<STR_LIT>', ((<NUM_LIT:1>, <NUM_LIT:0>), (<NUM_LIT:0>, <NUM_LIT:1>)))<EOL><DEDENT>elif shear[<NUM_LIT:0>][<NUM_LIT:0>] != <NUM_LIT:1> or shear[<NUM_LIT:1>][<NUM_LIT:1>] != <NUM_LIT:1>:<EOL><INDENT>raise RuntimeError('<STR_LIT>')<EOL><DEDENT>elif not is_tuple(shear) or not all(is_tuple(s) for s in shear):<EOL><INDENT>params.set('<STR_LIT>', tuple([tuple(s) for s in shear]))<EOL><DEDENT>center = params['<STR_LIT>']<EOL>if pimms.is_number(center) and np.isclose(center, <NUM_LIT:0>):<EOL><INDENT>params = params.set('<STR_LIT>', (<NUM_LIT:0.0>, <NUM_LIT:0.0>))<EOL><DEDENT>return pimms.persist(params, depth=None)<EOL>
mdl.parameters is a persistent map of the parameters for the given SchiraModel object mdl.