Skip to content

Commit

Permalink
removed dicom_dir from run
Browse files Browse the repository at this point in the history
  • Loading branch information
Reza Eghbali committed Jul 4, 2024
1 parent a260cbd commit 57c4ea4
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions pyalfe/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,6 @@ def download(assets):
'--data-dir-structure',
type=click.Choice(['alfe', 'bids'], case_sensitive=False),
)
@click.option(
'-dcm',
'--dicom-dir',
type=click.Path(), default=None
)
def run(
accession: str,
config: str,
Expand Down Expand Up @@ -261,17 +256,17 @@ def process_dicom(
nifti_dir: str,
data_dir_structure: str,
overwrite: bool,
):
):
from pyalfe.containers import DicomProcessingContianer

container = DicomProcessingContianer()
container.config.from_ini(config, required=True, envs_required=True)

options = container.config.options()

options['dicom_dir'] = dicom_dir

if nifti_dir:
if nifti_dir:
options['nifti_dir'] = nifti_dir
else:
options['nifti_dir'] = options['input_dir']
Expand All @@ -285,7 +280,5 @@ def process_dicom(
pipeline_runner.run(accession)




if __name__ == '__main__':
main()

0 comments on commit 57c4ea4

Please sign in to comment.