marEx.helper.configure_dask

marEx.helper.configure_dask(scratch_dir=None, config=None)[source]

Configure Dask with appropriate settings for HPC environments.

Parameters:
  • scratch_dir (str or Path, optional) – Directory to use for temporary files.

  • config (dict, optional) – Additional Dask configuration settings to apply.

Returns:

Temporary directory object that should be kept alive while Dask is in use.

Return type:

TemporaryDirectory