-
Notifications
You must be signed in to change notification settings - Fork 31
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
csv2nidm -json_map #312
Comments
@dbkeator - any thoughts on this? |
Hi, I would need to see the json file and the csv files if possible. |
The csv would be like the one at https://github.com/ReproNim/SemanticCBCL/blob/main/fake_Data/abcd_cbcl01_simdata.txt. Will let someone else provide the example json file... |
@satra That JSON file isn't of the supported pynidm or BIDS forms. It's something else so if it's used directly in csv2nidm it don't recognize it.... |
Thank you so much! That makes sense.
…On Tue, Apr 26, 2022, 10:40 AM David Keator ***@***.***> wrote:
@satra <https://github.com/satra> That JSON file isn't of the supported
pynidm or BIDS forms. It's something else so if it's used directly in
csv2nidm it don't recognize it....
—
Reply to this email directly, view it on GitHub
<#312 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AQYVDGIJ23GTQBSG7KMIKADVHAE65ANCNFSM5UBK2D7A>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
So, how do we proceed with this? Convery satra's json to pynidm json? Or teach pynidm to read another json version? |
i suggest we write a few headings using csv2nidm and mimic it when we merge all our items. |
more generally, pynidm should inform the user why the json file is not being used. i.e. something like couldn't find appropriate keys or keys containing appropriate fields. |
Regarding an 'example run' to generate json we can mimic, if someone gets to that before me, please post it in the SemanticCBCL Slack! |
Will add a message to both csv2nidm and bidsmri2nidm to indicate the JSON file supplied isn't of the appropriate format... |
I am running into a problem using csv2nidm. I created a json file from a csv file. My python code to use csv2nidm:
os.system('csv2nidm -csv /workspace/code/2022project-semanticcbcl/SemanticCBCL/NDA_Dictionaries/abcd_cbcl01_definitions.csv
-json_map /workspace/code/2022project-semanticcbcl/SemanticCBCL/NDA_Dictionaries/abcd_cbcl01_definitions.json
-out /workspace/code/2022project-semanticcbcl/SemanticCBCL/NDA_Dictionaries/abcd_cbcl01_definitions_outfile.json')
I can't get it to read the json file so it will only ask me the necessary concept prompts - it reads the CSV file and tries to take me through all the prompts, but the json file has many of the answers to the prompts. I can not run csv2nidm without the -csv CSV FILE. Does anyone have any thoughts?
The text was updated successfully, but these errors were encountered: