def data_check(self, participant):
nodes = Node.query.filter_by(participant_id=participant.id).all()<EOL>if len(nodes) != self.experiment_repeats + self.practice_repeats:<EOL><INDENT>print(<EOL>"<STR_LIT>".format(len(nodes))<EOL>)<EOL>return False<EOL><DEDENT>nets = [n.network_id for n in nodes]<EOL>if len(nets) != len(set(nets)):<EOL><INDENT>print(<EOL>"<STR_LIT>"<EOL>)<EOL>return False<EOL><DEDENT>if None in [n.fitness for n in nodes]:<EOL><INDENT>print(<EOL>"<STR_LIT>"<EOL>)<EOL>return False<EOL><DEDENT>if None in [n.score for n in nodes]:<EOL><INDENT>print(<EOL>"<STR_LIT>"<EOL>)<EOL>return False<EOL><DEDENT>return True<EOL>
Check a participants data.