add constructed bundles to constraints, minor refatoring
This commit is contained in:
@ -16,6 +16,10 @@ def items_csv_to_dict(items_csv_reader, irt_model):
|
||||
for key, col in enumerate(headers):
|
||||
if key == 0:
|
||||
item[col] = row[key]
|
||||
if key == 2:
|
||||
# make sure id exists
|
||||
if row[key]:
|
||||
item['passage'] = row[key]
|
||||
# b param - tmep fix! use irt model b param for proper reference
|
||||
elif key == (1 - len(headers)):
|
||||
item['b_param'] = row[key]
|
||||
|
Reference in New Issue
Block a user