Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test_config not working giving error #35

Open
egarza opened this issue Sep 26, 2018 · 0 comments
Open

test_config not working giving error #35

egarza opened this issue Sep 26, 2018 · 0 comments

Comments

@egarza
Copy link

egarza commented Sep 26, 2018

Hi,

I'm using the latest bids/cpac and I get the following error when running test_config using docker and singularity:

#### Running C-PAC
Number of participants to run in parallel: 1
Input directory: /bids_dataset
Output directory: /output/output
Working directory: /scratch/working
Crash directory: /output/crash
Log directory: /output/log
Remove working directory: True
Available memory: 6.0 (GB)
Available threads: 1
Number of threads for ANTs: 1
args.aws_data_input_creds None
Traceback (most recent call last):
  File "/code/run.py", line 338, in <module>
    config_dir="/scratch/")
  File "/usr/local/miniconda/lib/python2.7/site-packages/CPAC/utils/build_data_config.py", line 882, in get_BIDS_data_dct
    sites_dct=sites_subs_dct)
  File "/usr/local/miniconda/lib/python2.7/site-packages/CPAC/utils/build_data_config.py", line 1377, in get_nonBIDS_data
    raise Exception(err)
Exception: 

[!] No anatomical input file paths found given the data settings provided.

Anatomical file template being used: /bids_dataset/*/sub-*/anat/sub-*_T1w.nii.gz

It seems it wants to force to find the session folder but my data does not have one because it is only one session.

The culprit seems to be the following line in build_data_config.py:

 else:
        # no session level
        data_dct = get_nonBIDS_data(anat, func, file_list=file_list,
                                    anat_scan=anat_scan,
                                    scan_params_dct=scan_params_dct,
                                    fmap_phase_template=fmap_phase,
                                    fmap_mag_template=fmap_mag,
                                    aws_creds_path=aws_creds_path,
                                    inclusion_dct=inclusion_dct,
                                    exclusion_dct=exclusion_dct,
                                    sites_dct=sites_subs_dct)

Thanks

Eduardo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant