Skip to content

Commit

Permalink
Add isBIDS option for YAML
Browse files Browse the repository at this point in the history
  • Loading branch information
neurolabusc committed Jun 9, 2016
1 parent 6da5019 commit f6ba376
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions console/nii_dicom_batch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2253,6 +2253,8 @@ void readIniFile (struct TDCMopts *opts, const char * argv[]) {
//printf(">%s<->'%s'\n",Setting,Value);
if ( strcmp(Setting,"isGZ") == 0 )
opts->isGz = atoi(Value);
else if ( strcmp(Setting,"isBIDS") == 0 )
opts->isCreateBIDS = atoi(Value);
else if ( strcmp(Setting,"filename") == 0 )
strcpy(opts->filename,Value);
}
Expand All @@ -2265,6 +2267,7 @@ void saveIniFile (struct TDCMopts opts) {
//printf("%s\n",localfilename);
if (fp == NULL) return;
fprintf(fp, "isGZ=%d\n", opts.isGz);
fprintf(fp, "isBIDS=%d\n", opts.isCreateBIDS);
fprintf(fp, "filename=%s\n", opts.filename);
fclose(fp);
} //saveIniFile()
Expand Down

0 comments on commit f6ba376

Please sign in to comment.