Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIX: Add dask config single-threaded to build catalog from timeseries #559

Merged
merged 2 commits into from
Jan 13, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,12 @@ The only parts of ecgtools we need are the `Builder` object and the `parse_cesm_
```{code-cell} ipython3
import pathlib

import dask
import intake
from ecgtools import Builder
from ecgtools.parsers.cesm import parse_cesm_timeseries

dask.config.set(scheduler='single-threaded')
```

## Understanding the directory structure
Expand Down Expand Up @@ -90,7 +93,7 @@ cat_builder = Builder(
# Exclude the timeseries and restart directories
exclude_patterns=["*/tseries/*", "*/rest/*"],
# Number of jobs to execute - should be equal to # threads you are using
joblib_parallel_kwargs={'n_jobs': 5},
joblib_parallel_kwargs={'n_jobs': -1},
)

cat_builder
Expand Down