Delete redundant lines
This commit is contained in:
parent
a56358b8dd
commit
fcc4d55947
@ -117,7 +117,6 @@ def analyse(subject:Union[Dataset,Test]) -> dict:
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
scores_raw = []
|
scores_raw = []
|
||||||
dataset = subject if isinstance(subject, Dataset) else subject.dataset
|
|
||||||
if isinstance(subject, Test):
|
if isinstance(subject, Test):
|
||||||
for entry in subject.entries:
|
for entry in subject.entries:
|
||||||
if entry.answers:
|
if entry.answers:
|
||||||
@ -131,7 +130,6 @@ def analyse(subject:Union[Dataset,Test]) -> dict:
|
|||||||
scores_raw.append(int(entry.result['score']))
|
scores_raw.append(int(entry.result['score']))
|
||||||
else:
|
else:
|
||||||
for test in subject.tests:
|
for test in subject.tests:
|
||||||
output['entries'] += len(test.entries)
|
|
||||||
for entry in test.entries:
|
for entry in test.entries:
|
||||||
if entry.answers:
|
if entry.answers:
|
||||||
for question, answer in entry.answers.items():
|
for question, answer in entry.answers.items():
|
||||||
|
Loading…
Reference in New Issue
Block a user