bids/types/dataset.js
import { fallbackDatasetDescription } from './json'
export class BidsDataset {
/**
* The dataset's event file data.
* @type {BidsEventFile[]}
*/
eventData
/**
* The dataset's sidecar data.
* @type {BidsSidecar[]}
*/
sidecarData
/**
* The dataset's dataset_description.json file.
* @type {BidsJsonFile}
*/
datasetDescription
/**
* The dataset's root directory as an absolute path.
* @type {string|null}
*/
datasetRootDirectory
constructor(eventData, sidecarData, datasetDescription = fallbackDatasetDescription, datasetRootDirectory = null) {
this.eventData = eventData
this.sidecarData = sidecarData
this.datasetDescription = datasetDescription
this.datasetRootDirectory = datasetRootDirectory
}
}