Skip to content

Download Datasets

The download command is used to download all datasets specified. Please refer to Datasets for details on the available datasets. Additional datasets can be added by creating a new dataset class and registering it with SleepKit dataset factory.

Usage

CLI

Using the CLI, the download command can be used to download specified datasets in the configuration file or directly in the command line.

sleepkit -m download -c '{"datasets": [{"name": "cmidss", "parameters": {"path": ".datatasets/cmidss"}}]}'

Python

In code, the download method of a dataset can be used to download the dataset.

1
2
3
4
import sleepkit as sk

ds = sk.DatasetFactory.get("cmidss")(path="./datasets/cmidss")
ds.download()

Arguments

Please refer to TaskParams for the list of arguments that can be used with the download command.