File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ import type { Schema as MetaSchema } from '@bids/schema/metaschema'
33
44import type { BIDSFile } from '../types/filetree.ts'
55import type { BIDSContext } from './context.ts'
6+ import { loadJSON } from '../files/json.ts'
67import { loadTSV } from '../files/tsv.ts'
78import { parseBvalBvec } from '../files/dwi.ts'
89import { walkBack } from '../files/inheritance.ts'
@@ -85,6 +86,16 @@ const associationLookup = {
8586 sampling_frequency : columns . get ( 'sampling_frequency' ) ,
8687 }
8788 } ,
89+ coordsystem : async ( file : BIDSFile , options : { maxRows : number } ) : Promise < Channels > => {
90+ const keys = Object . keys ( await loadJSON ( file , options . maxRows )
91+ . catch ( ( e ) => {
92+ return new Map ( )
93+ } ) )
94+ return {
95+ path : file . path ,
96+ keys : keys ,
97+ }
98+ } ,
8899}
89100
90101export async function buildAssociations (
You can’t perform that action at this time.
0 commit comments