Skip to content
sleepKIT
User guide
HELIA

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.

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

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

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

Python example
import sleepkit as sk
ds = sk.DatasetFactory.get("cmidss")(path="./datasets/cmidss")
ds.download()

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