Skip to content

Instantly share code, notes, and snippets.

View jyesselm's full-sized avatar

Joseph Yesselman jyesselm

View GitHub Profile
@jyesselm
jyesselm / test_dask_1.py
Last active February 3, 2023 15:23
a simple example for getting dask to work on a cluster with SLURM job queue
"""
To install
conda create -n dask-tutorial python=3.7 anaconda
conda activate dask-tutorial
conda install dask
conda install -c conda-forge dask-jobqueue
"""
import dask
import time
from enum import Enum # for enum34, or the stdlib version
Animal = Enum('Animal', 'ant bee cat dog')
class Animal2(Enum):
ant = 1
bee = 2
cat = 3
dog = 4