return results whether optimized or not, add status to returned csv
This commit is contained in:
@ -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)}']
|
||||
|
Reference in New Issue
Block a user