Skip to content

Commit

Permalink
Add 'include_comment' field
Browse files Browse the repository at this point in the history
  • Loading branch information
johnjosephhorton committed Sep 19, 2024
1 parent fd092ac commit a4ed5ce
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions edsl/questions/derived/QuestionLinearScale.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ def __init__(
option_labels: Optional[dict[int, str]] = None,
answering_instructions: Optional[str] = None,
question_presentation: Optional[str] = None,
include_comment: Optional[bool] = True,
):
"""Instantiate a new QuestionLinearScale.
Expand All @@ -36,6 +37,7 @@ def __init__(
question_text=question_text,
question_options=question_options,
use_code=False, # question linear scale will have it's own code
include_comment=include_comment,
)
self.question_options = question_options
self.option_labels = (
Expand Down
2 changes: 2 additions & 0 deletions edsl/questions/derived/QuestionTopK.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ def __init__(
max_selections: int,
question_presentation: Optional[str] = None,
answering_instructions: Optional[str] = None,
include_comment: Optional[bool] = True,
):
"""Initialize the question.
Expand All @@ -37,6 +38,7 @@ def __init__(
max_selections=max_selections,
question_presentation=question_presentation,
answering_instructions=answering_instructions,
include_comment=include_comment,
)
if min_selections != max_selections:
raise QuestionCreationValidationError(
Expand Down
2 changes: 2 additions & 0 deletions edsl/questions/derived/QuestionYesNo.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ def __init__(
question_options: list[str] = ["No", "Yes"],
answering_instructions: Optional[str] = None,
question_presentation: Optional[str] = None,
include_comment: Optional[bool] = True,
):
"""Instantiate a new QuestionYesNo.
Expand All @@ -33,6 +34,7 @@ def __init__(
use_code=False,
answering_instructions=answering_instructions,
question_presentation=question_presentation,
include_comment=include_comment,
)
self.question_options = question_options

Expand Down

0 comments on commit a4ed5ce

Please sign in to comment.