You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm having trouble understanding the logic in aa_downloaddemo.m. On line 24 and following it checks to see whether DEMODIRBASENAME (which is 'aa_demo') is in aap_directory_conventions.rawdatadir, and if not, generates an error:
sources = strsplit(aap.directory_conventions.rawdatadir,':')';
demoind = cell_index(sources, DEMODIRBASENAME);
assert(~any(demoind==0), ...
['did not find ''' DEMODIRBASENAME ''' directory in aap.directory_conventions.rawdatadir'])
The reason for aa_demo to allow automatic download into a central storage place shared within lab; so demo data is downloaded only once.
It is intentional (even if a little confusing) to have aa_demo/aa_demo. The first aa_demo is the name of the central store, while the second is actually the demo dataset. For BIDS114 it is aa_demo/ds114_test2.
Ah, I see now. I agree having the automatic download is excellent and it's an elegant script.
The other nonspecific error I reported has gone away.
I'm going to make a few modifications to aa_user_demo.m which I'm happy for feedback on, primarily adding more explanations in the comments (documenting all of the things I had to do in order to get the script to run).
I'm having trouble understanding the logic in aa_downloaddemo.m. On line 24 and following it checks to see whether DEMODIRBASENAME (which is 'aa_demo') is in aap_directory_conventions.rawdatadir, and if not, generates an error:
so if I do something like this:
I get an error. If I then do
then the data downloads...BUT the script creates an 'aa_demo' folder as a subfolder of the rawdatadir, on line 33:
the result is my data are in ~/data/aa_demo/aa_demo and the rest of the aa_user_demo script fails to run.
I may be missing something obvious about the logic here. What's the reason that 'aa_demo' is required to be in aap.directory_conventions.rawdatadir?
The text was updated successfully, but these errors were encountered: