Skip to content

Commit

Permalink
added comment for context
Browse files Browse the repository at this point in the history
  • Loading branch information
sid4py committed Jan 13, 2025
1 parent fb76132 commit caf5778
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions neurobooth_terra/redcap.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,12 @@ def extract_field_annotation(s):
if pd.isna(field_annot):
return s

# field annotations are generally separated by a space
# But special annotations that are function or action tags
# in redcap speak have a syntax and cannot have other
# annotations following them separated by space.
# Those have to go in the next line.
# This replace handles those cases
field_annot.replace("\n"," ")
fields = field_annot.split(' ')
fois = list()
Expand Down

0 comments on commit caf5778

Please sign in to comment.