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

error for a non-GUID participant #41

Open
jungheejung opened this issue Jul 12, 2023 · 2 comments
Open

error for a non-GUID participant #41

jungheejung opened this issue Jul 12, 2023 · 2 comments

Comments

@jungheejung
Copy link

  • I'm sharing a subset of participants in my BIDS directory.
  • I have a GUIDMAPPING.txt, which as subject ids.
0002 - {corresponding_GUID}
0004 - {corresponding_GUID}
0116 - {corresponding_GUID}
0118 - {corresponding_GUID}
  • As you can see, I don't have a sub-0117. However, I get an error message for sub-0117.
  • How can I trouble shoot?
$ vim GUIDMAPPING.txt 
$ bids2nda ${BIDS_DIRECTORY} ${GUID_MAPPING} ${OUTPUT_DIRECTORY}
Traceback (most recent call last):
  File ".conda/envs/myenv/bin/bids2nda", line 8, in <module>
    sys.exit(main())
  File ".conda/envs/myenv/lib/python3.7/site-packages/bids2nda/main.py", line 419, in main
    run(args)
  File ".conda/envs/myenv/lib/python3.7/site-packages/bids2nda/main.py", line 172, in run
    dict_append(image03_dict, 'subjectkey', guid_mapping[bids_subject_id])
KeyError: '0117'
@yarikoptic
Copy link
Collaborator

ha -- cool to see you are trying to use it. If you adjust your profile to switch from outdated "Boulder, Colorado" - let's see to get this fixed ;)

@jungheejung
Copy link
Author

@yarikoptic Deal! Just fixed it.

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

2 participants