xiangruili / dicm2nii

DICOM to NIfTI conversion, NIfTI tools
BSD 2-Clause "Simplified" License
89 stars 45 forks source link

remove warnings when adding to table col by col #47

Closed ddwagner closed 3 years ago

ddwagner commented 3 years ago

The matlab warning: "Warning: The assignment added rows to the table, but did not assign values to all of the table's existing variables. Those variables are extended with rows containing default values. " when adding to the partcipants.tsv are annoying and could cause concern among users who are uncertain what it means. Matlab seems to prefer building tables an entire row at a time but given that write_tsv.m needs to keep an eye out for new columns (and then nan those for the previous subjects) it seems best to keep it as is and build col by col. I think it's pretty safe to disable the warning during this process. What do you think?