Skip to content

Commit

Permalink
[FIX] Fix issue with enumeration as default value in CLI (#1217)
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolasGensollen authored Jun 27, 2024
1 parent e834d41 commit cb8300a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions clinica/iotools/converters/adni_to_bids/adni_to_bids_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"--modalities",
multiple=True,
type=click.Choice(ADNIModality),
default=ADNIModality,
default=list(ADNIModality),
help="Convert only the selected modality. By default, all available modalities are converted.",
)
@click.option(
Expand All @@ -46,7 +46,7 @@ def cli(
subjects_list: Optional[str] = None,
clinical_data_only: bool = False,
force_new_extraction: bool = False,
modalities: Iterable[Union[str, ADNIModality]] = ADNIModality,
modalities: Optional[Iterable[Union[str, ADNIModality]]] = None,
n_procs: Optional[int] = None,
) -> None:
"""ADNI to BIDS converter.
Expand All @@ -67,7 +67,7 @@ def cli(
clinical_data_directory,
clinical_data_only=clinical_data_only,
subjects=subjects_list,
modalities=modalities,
modalities=modalities or list(ADNIModality),
xml_path=xml_path,
force_new_extraction=force_new_extraction,
n_procs=n_procs,
Expand Down

0 comments on commit cb8300a

Please sign in to comment.