def sync_params(self):
def _normalize(comps, param):<EOL><INDENT>vals = [c.get_values(param) for c in comps]<EOL>diff = any([vals[i] != vals[i+<NUM_LIT:1>] for i in range(len(vals)-<NUM_LIT:1>)])<EOL>if diff:<EOL><INDENT>for c in comps:<EOL><INDENT>c.set_values(param, vals[<NUM_LIT:0>])<EOL><DEDENT><DEDENT><DEDENT>for param, comps in iteritems(self.lmap):<EOL><INDENT>if isinstance(comps, list) and len(comps) > <NUM_LIT:1>:<EOL><INDENT>_normalize(comps, param)<EOL><DEDENT><DEDENT>
Ensure that shared parameters are the same value everywhere