Closed rbyh closed 3 months ago
Hint to self: options are only being rendered w/ the scenario, not piped answers.
File "/Users/john/tools/edsl/edsl/questions/QuestionMultipleChoice.py", line 54, in <listcomp>
Template(str(option)).render(scenario) for option in self.question_options
More hints - probably fix at this line in 'Invigilators'
answer = question._translate_answer_code_to_answer(response["answer"], scenario)
At the breakpoint:
(Pdb) self.current_answers
{'q1': ['Blue', 'Green', 'Red'], 'q1_comment': 'These colors are widely appreciated for their depth and versatility.'}
(Pdb) self.question
Question('multiple_choice', question_name = """q3""", question_text = """Which color is your #1 favorite?""", question_options = ['{{ q1.answer[0] }}', '{{ q1.answer[1] }}'], model_instructions = {})
(Pdb) self.question.question_options
['{{ q1.answer[0] }}', '{{ q1.answer[1] }}']
(Pdb)
Currently, items in an
answer
that is a list can be piped individually into aquestion_text
but notquestion_options
: