def set_parameters(self, **args):
for k, v in self.PARAMETERS.items():<EOL><INDENT>new_value = args.get(k)<EOL>if new_value != None:<EOL><INDENT>if not _same_type(new_value, v):<EOL><INDENT>raise Exception(<EOL>"<STR_LIT>".format(self, k, v,<EOL>new_value))<EOL><DEDENT>setattr(self, k, new_value)<EOL><DEDENT><DEDENT>not_used = set(args.keys()).difference(set(self.PARAMETERS.keys()))<EOL>not_given = set(self.PARAMETERS.keys()).difference(set(args.keys()))<EOL>return not_used, not_given<EOL>
sets the processor stored parameters