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

Bids metadata translation: jq: error (at <stdin>:79): string ("") and object ({"extension...) cannot be added #8

Open
mslw opened this issue Jul 4, 2022 · 1 comment

Comments

@mslw
Copy link

mslw commented Jul 4, 2022

I used the BIDS extractor from this PR (as suggested in the README) datalad/datalad-neuroimaging#104 on a semi-randomly chosen PET dataset from OpenNeuro (https://doi.org/10.18112/openneuro.ds001705.v1.0.1) and it worked. But then I ran local_translate_metadata (using stephan_dev branch) and it gave me an error:

❱ ./fairly-big-catalog-workflow/local/local_translate_metadata.sh bidsmeta/bids.json bidsmeta/tbids.json
Translating line 1:
jq: error (at <stdin>:79): string ("") and object ({"extension...) cannot be added

Files produced by extraction and translation are in this gist

I didn't try investigating further. From what I can see, although the translated file was produced, some values didn't make it, eg. doi or description. The description (README) of the dataset includes some weird unicode, but I'm not sure if that could be the issue.


Consequently, the catalog doesn't show the things that are missing:
cat

@jsheunis
Copy link
Owner

Sorry, only seeing this now. If I understand correctly, this is related to the similar issues you encountered here: datalad/datalad-catalog#182 (comment), with my take on it described here: datalad/datalad-catalog#182 (comment). Leaving this open until the issue is fixed.

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