Skip to content

Commit

Permalink
fill NA with False for neuromelanin column
Browse files Browse the repository at this point in the history
  • Loading branch information
michellewang committed Aug 30, 2024
1 parent 51bc2a4 commit 1a2b65f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions nipoppy/workflow/tabular/generate_manifest.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,9 @@ def run(global_config_file: str, regenerate: bool, make_release: bool):
lambda datatype: datatype if isinstance(datatype, list) else []
)

# replace NA neuromelanin by False
df_manifest[COL_NEUROMELANIN_MANIFEST] = df_manifest[COL_NEUROMELANIN_MANIFEST].fillna(False)

# convert session to BIDS format
with_imaging = ~df_manifest[COL_SESSION_MANIFEST].isna()
df_manifest.loc[with_imaging, COL_SESSION_MANIFEST] = df_manifest.loc[with_imaging, COL_SESSION_MANIFEST].apply(
Expand Down

0 comments on commit 1a2b65f

Please sign in to comment.