Skip to content

Commit

Permalink
Added docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
Evan8456 committed Jan 27, 2025
1 parent 1b278b7 commit 67f523c
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion src/b2aiprep/prepare/reproschema_to_redcap.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@


def parse_survey(survey_data, record_id, session_path):
"""
Function that generates a list of data frames in order to generate a redcap csv
Args:
survey_data is the raw json generated from reproschema ui
record_id is the id tat identifies the participant
session_path is the path containing the session id
"""
session_id = session_path.split("/")[0]
questionnaire_name = survey_data[0]["used"][1].split("/")[-1]
questions_answers = dict()
Expand Down Expand Up @@ -55,7 +62,12 @@ def parse_survey(survey_data, record_id, session_path):
return [df]

def parse_audio(audio_list, dummy_audio_files=False):
# peds specific tasks
"""
Function that generates a list of Json's to be converted into a redcap csv based on audio files.
Args:
audio_list is a list of paths to each audio files
dummy_audio_files is an optional variable for testing
"""
protocol_order = {
"ready_for_school": [],
"favorite_show_movie": [],
Expand Down

0 comments on commit 67f523c

Please sign in to comment.