def set_sim_params(self, nparams, attr_params):
for name, value in nparams.items():<EOL><INDENT>val = value[<NUM_LIT:0>] if value[<NUM_LIT:0>] is not None else '<STR_LIT:none>'<EOL>self.h5file.create_array('<STR_LIT>', name, obj=val,<EOL>title=value[<NUM_LIT:1>])<EOL><DEDENT>for name, value in attr_params.items():<EOL><INDENT>self.h5file.set_node_attr('<STR_LIT>', name, value)<EOL><DEDENT>
Store parameters in `params` in `h5file.root.parameters`.

        `nparams` (dict)
            A dict as returned by `get_params()` in `ParticlesSimulation()`
            The format is:
            keys:
                used as parameter name
            values: (2-elements tuple)
                first element is the parameter value
                second element is a string used as "title" (description)
        `attr_params` (dict)
            A dict whole items are stored as attributes in '/parameters'