in2lambda.api.response_area.Likert¶
- class in2lambda.api.response_area.Likert(*, answer: list[int | float | None] | dict[str, list[int | float | None]] | None=None, evaluation_function: str = <default>, grade_params: dict[str, ~typing.Any] | None=None, pre_text: str = '', post_text: str = '', content_after: str = '', check_button_text: str = '', input_symbols: list[InputSymbol] = <factory>, display_input_symbols: bool = <default>, live_preview: bool = <default>, include_in_pdf: bool = <default>, save_allowed: bool = <default>, separate_feedback: bool = <default>, common_feedback_color: str = <default>, correct_feedback_color: str = <default>, correct_feedback_prefix: str = <default>, incorrect_feedback_color: str = <default>, incorrect_feedback_prefix: str = <default>, tests: list[Test] = <factory>, accept: list[Any] = <factory>, reject: list[Any] = <factory>, cases: list[Case] = <factory>, statements: list[str] = <factory>, options: list[str] | None = None, repeat_for_subjects: bool = <default>, allow_empty_submission: bool = <default>)[source]¶
Bases:
ResponseAreaA multiple choice with Likert scales.
- __init__(*, answer: list[int | float | None] | dict[str, list[int | float | None]] | None=None, evaluation_function: str = <default>, grade_params: dict[str, ~typing.Any] | None=None, pre_text: str = '', post_text: str = '', content_after: str = '', check_button_text: str = '', input_symbols: list[InputSymbol] = <factory>, display_input_symbols: bool = <default>, live_preview: bool = <default>, include_in_pdf: bool = <default>, save_allowed: bool = <default>, separate_feedback: bool = <default>, common_feedback_color: str = <default>, correct_feedback_color: str = <default>, correct_feedback_prefix: str = <default>, incorrect_feedback_color: str = <default>, incorrect_feedback_prefix: str = <default>, tests: list[Test] = <factory>, accept: list[Any] = <factory>, reject: list[Any] = <factory>, cases: list[Case] = <factory>, statements: list[str] = <factory>, options: list[str] | None = None, repeat_for_subjects: bool = <default>, allow_empty_submission: bool = <default>) None¶
Methods
__init__(*, answer, ...)Attributes
allow_empty_submissionanswerReplaces the label of the check button; left out of the JSON when empty.
common_feedback_colorMarkdown shown after the box, before the next one.
correct_feedback_colorcorrect_feedback_prefixdisplay_input_symbolsevaluation_functiongrade_paramsinclude_in_pdfincorrect_feedback_colorincorrect_feedback_prefixlive_previewoptionsThe types a test payload, a sample response, may take.
post_textpre_textrepeat_for_subjectsresponse_typesave_allowedseparate_feedbackstatementsinput_symbolstestsResponses that must be marked correct; each is written as a passing test.
Responses that must be marked incorrect; each is written as a failing test.
cases- accept: list[Any]¶
Responses that must be marked correct; each is written as a passing test.
- check_button_text: str = ''¶
Replaces the label of the check button; left out of the JSON when empty.
- content_after: str = ''¶
Markdown shown after the box, before the next one.
- payload_types: ClassVar[tuple[type, ...]] = (<class 'object'>,)¶
The types a test payload, a sample response, may take.
- reject: list[Any]¶
Responses that must be marked incorrect; each is written as a failing test.