From 332441e1ecb5f7f3255880c6947a7d56faf10bdc Mon Sep 17 00:00:00 2001 From: Clemens Brunner Date: Thu, 21 Jul 2022 13:51:37 +0200 Subject: [PATCH] Replace more single quotes --- doc/source/datasets.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/doc/source/datasets.md b/doc/source/datasets.md index 25d9aed5..9308ee22 100644 --- a/doc/source/datasets.md +++ b/doc/source/datasets.md @@ -34,7 +34,7 @@ The code below shows how to read all records in the [MESA](https://sleepdata.org ```python from sleepecg import read_mesa, set_nsrr_token -set_nsrr_token('') +set_nsrr_token("") mesa = read_mesa() # note that this is a generator ``` @@ -42,19 +42,19 @@ You can also select a subset of records from a dataset. This example will downlo ```python from sleepecg import read_mesa, set_nsrr_token -set_nsrr_token('') -mesa = read_mesa(records_pattern='00*') # note that this is a generator +set_nsrr_token("") +mesa = read_mesa(records_pattern="00*") # note that this is a generator ``` If you just want to download NSRR data (like with the [NSRR Ruby Gem](https://github.com/nsrr/nsrr-gem)), use the workflow below. The example downloads all files within [`mesa/polysomnography/edfs`](https://sleepdata.org/datasets/mesa/files/polysomnography/edfs) matching `*-00*` to a local folder `./datasets` (subfolders are created to preserve the dataset's directory structure). ```python from sleepecg import download_nsrr, set_nsrr_token -set_nsrr_token('') +set_nsrr_token("") download_nsrr( - db_slug='mesa', - subfolder='polysomnography/edfs', - pattern='*-00*', - data_dir='./datasets', + db_slug="mesa", + subfolder="polysomnography/edfs", + pattern="*-00*", + data_dir="./datasets", ) ```