return results whether optimized or not, add status to returned csv

This commit is contained in:
Josh Burman
2021-11-22 17:25:32 +00:00
parent c2d1ccb2bd
commit 88ef6b2e03
3 changed files with 13 additions and 11 deletions

View File

@ -34,7 +34,8 @@ def solution_to_file(buffer, total_form_items, forms):
# write header row for first row utilizing the total items all forms will have
# fill the rows with the targets and cut score then the items
header = []
header = ['status']
for result in forms[0].tif_results:
header += [f'tif @ {round(result.theta, 2)}']
@ -46,7 +47,7 @@ def solution_to_file(buffer, total_form_items, forms):
# add each form as row to processed csv
for form in forms:
row = []
row = [form.status]
for result in form.tif_results:
row += [f'value - {result.value}\nresult - {round(result.result, 2)}']