def _check_file(self, f):
L.info('<STR_LIT>', f)<EOL>full_result = True<EOL>full_summary = OrderedDict()<EOL>try:<EOL><INDENT>data = load_data(f)<EOL><DEDENT>except Exception as e:  <EOL><INDENT>L.error('<STR_LIT>')<EOL>L.error(e.args)<EOL>return False, {f: OrderedDict([('<STR_LIT>', False)])}<EOL><DEDENT>try:<EOL><INDENT>result, summary = self._check_loop(data, '<STR_LIT>')<EOL>full_result &= result<EOL>full_summary.update(summary)<EOL>nrn = fst_core.FstNeuron(data)<EOL>result, summary = self._check_loop(nrn, '<STR_LIT>')<EOL>full_result &= result<EOL>full_summary.update(summary)<EOL><DEDENT>except Exception as e:  <EOL><INDENT>L.error('<STR_LIT>', str(type(e)) + str(e.args))<EOL>full_result = False<EOL><DEDENT>full_summary['<STR_LIT>'] = full_result<EOL>for m, s in full_summary.items():<EOL><INDENT>self._log_msg(m, s)<EOL><DEDENT>return full_result, {f: full_summary}<EOL>
Run tests on a morphology file