def rebuild_system(self, override=False, **kwargs):
<EOL>supercell_333 = create_supercell(self.system, **kwargs)<EOL>discrete = discrete_molecules(self.system, rebuild=supercell_333)<EOL>coordinates = np.array([], dtype=np.float64).reshape(<NUM_LIT:0>, <NUM_LIT:3>)<EOL>atom_ids = np.array([])<EOL>elements = np.array([])<EOL>for i in discrete:<EOL><INDENT>coordinates = np.concatenate(<EOL>[coordinates, i['<STR_LIT>']], axis=<NUM_LIT:0><EOL>)<EOL>atom_ids = np.concatenate([atom_ids, i['<STR_LIT>']], axis=<NUM_LIT:0>)<EOL>elements = np.concatenate([elements, i['<STR_LIT>']], axis=<NUM_LIT:0>)<EOL><DEDENT>rebuild_system = {<EOL>'<STR_LIT>': coordinates,<EOL>'<STR_LIT>': atom_ids,<EOL>'<STR_LIT>': elements<EOL>}<EOL>if override is True:<EOL><INDENT>self.system.update(rebuild_system)<EOL>return None<EOL><DEDENT>else:<EOL><INDENT>return self.load_system(rebuild_system)<EOL><DEDENT>
Rebuild molecules in molecular system.

Parameters
----------
override : :class:`bool`, optional (default=False)
    If False the rebuild molecular system is returned as a new
    :class:`MolecularSystem`, if True, the current
    :class:`MolecularSystem` is modified.