Closed clane9 closed 3 months ago
Would it be possible to load the metadata afterwards? Consider the case where you need metadata, but only on a few files. You could filter the table first, and then load.
Hey @effigies, thanks for the comment, that is a good point. It's definitely pretty easy to do after the fact by applying extract_metadata
to the file paths in the filtered table. I just added a helper method in BIDSTable
that does this.
In datasets with large sidecar json metadata, extracting metadata can take up >90% of run time. Add an option to ignore metadata when it's not needed to get a significant speedup. The
'meta__json'
column remains in the table but the values arenull
.