add b param to irt model

This commit is contained in:
Josh Burman
2021-11-30 21:12:08 +00:00
parent ebccd9522a
commit b2c3f0df79
4 changed files with 6 additions and 6 deletions

View File

@ -2,7 +2,7 @@ import csv
import io
import re
def items_csv_to_dict(items_csv_reader):
def items_csv_to_dict(items_csv_reader, irt_model):
items = []
headers = []
@ -16,7 +16,7 @@ def items_csv_to_dict(items_csv_reader):
for key, col in enumerate(headers):
if key == 0:
item[col] = row[key]
# b param
# b param - tmep fix! use irt model b param for proper reference
elif key == (1 - len(headers)):
item['b_param'] = row[key]
elif key > 1:
@ -25,7 +25,7 @@ def items_csv_to_dict(items_csv_reader):
'value': row[key],
'type': 'metadata'
})
print(row(1 - len(headers)))
items.append(item)
return items