Skip to content

Commit

Permalink
[FIX] Change check on type in converter NIFD (#1227)
Browse files Browse the repository at this point in the history
  • Loading branch information
AliceJoubert authored Jul 11, 2024
1 parent 047065c commit c05f24d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clinica/iotools/converters/nifd_to_bids/nifd_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ def dataset_to_bids(
session_id=lambda df: df.visit.apply(
lambda x: (
"ses-M" + x.strip("M").zfill(3)
if pd.api.types.is_string_dtype(x)
if isinstance(x, str)
else f"ses-M{(6 * (x - 1)):03d}"
)
),
Expand Down

0 comments on commit c05f24d

Please sign in to comment.