def check_inputs(self, comps):
error = False<EOL>compcats = [c.category for c in comps]<EOL>for k, v in iteritems(self.varmap):<EOL><INDENT>if k not in self.modelstr['<STR_LIT>']:<EOL><INDENT>log.warn('<STR_LIT>' % (k,v))<EOL><DEDENT>if v not in compcats:<EOL><INDENT>log.error('<STR_LIT>' % (k,v))<EOL>error = True<EOL><DEDENT><DEDENT>if error:<EOL><INDENT>raise ModelError('<STR_LIT>')<EOL><DEDENT>
Check that the list of components `comp` is compatible with both the
varmap and modelstr for this Model