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

-p flag not working #38

Closed
Arshitha opened this issue Dec 11, 2023 · 2 comments · Fixed by #39
Closed

-p flag not working #38

Arshitha opened this issue Dec 11, 2023 · 2 comments · Fixed by #39
Assignees
Labels
bug Something isn't working

Comments

@Arshitha
Copy link
Collaborator

Running the pipeline on a single participant with -p is not working. The program just prints dataset summary and quits without an error.

@Arshitha Arshitha linked a pull request Dec 14, 2023 that will close this issue
@Arshitha Arshitha self-assigned this Dec 14, 2023
@Arshitha Arshitha added enhancement New feature or request bug Something isn't working and removed enhancement New feature or request labels Dec 14, 2023
@yarikoptic
Copy link

for me it is errorring our differently:

yoh@typhon:/mnt/DATA/data/yoh/1076_spacetop$ ../dsst-defacing-pipeline/dsst-defacing-pipeline-test.sing -p 0001 -- . derivatives/dss-defacing-1
Traceback (most recent call last):
  File "/opt/dsst-defacing-pipeline/run.py", line 192, in <module>
    main()
  File "/opt/dsst-defacing-pipeline/run.py", line 106, in main
    mapping_dict = generate_mappings.crawl(input_dir, output)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/dsst-defacing-pipeline/generate_mappings.py", line 196, in crawl
    f3.write('\n'.join([str(p) for p in no_anat_dirs]))
                                        ^^^^^^^^^^^^
UnboundLocalError: cannot access local variable 'no_anat_dirs' where it is not associated with a value

(using container from #41) .

@yarikoptic
Copy link

reason for my error -- wrong code assumption that we do have some sub- folder -- in my case I might have forgot to mount/be in a different folder etc.

I will propose a quick PR...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants