Skip to content

Commit 844c7b4

Browse files
committed
Formatting
1 parent 337e38c commit 844c7b4

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

src/harmony/util/instrument_helper.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,20 @@
3232
from harmony.schemas.requests.text import Instrument, Question
3333

3434

35-
def create_instrument_from_list(question_texts: list[str], answer_texts: list[list] = None, question_numbers: list = None,
35+
def create_instrument_from_list(question_texts: list[str], answer_texts: list[list] = None,
36+
question_numbers: list = None,
3637
instrument_name: str = "My instrument",
3738
file_name="My file") -> Instrument:
3839
"""
3940
Read a list of strings and create an Instrument object.
4041
4142
:param question_texts: The main part of the texts of the questions in the questionnaires, e.g. ["I feel nervous", "I feel afraid"]
42-
:param answer_texts: Optional parameter where you can provide the response options. This is a list of lists of the same length of the list of questions. Each item in the list of lists is a list containing the options for that question. E.g. [["Rarely", "Often"], ["Rarely", "Sometimes", "Never"]] would represent the options for a questionnaire consisting of two questions.
43-
:param question_numbers: Optional parameter where you can provide the original question numbers associated with the questions. This list should be the same length as `question_texts`. Question numbers can be strings.
43+
:param answer_texts: Optional parameter where you can provide the response options.
44+
This is a list of lists of the same length of the list of questions.
45+
Each item in the list of lists is a list containing the options for that question.
46+
E.g. [["Rarely", "Often"], ["Rarely", "Sometimes", "Never"]] would represent the options for a questionnaire consisting of two questions.
47+
:param question_numbers: Optional parameter where you can provide the original question numbers associated with the questions.
48+
This list should be the same length as `question_texts`. Question numbers can be strings.
4449
:param instrument_name: Optional metadata containing name of the instrument.
4550
:param file_name: Optional metadata containing name of the file.
4651
:return: Single Instrument.

0 commit comments

Comments
 (0)