CarragherLab / cptools2

Running cellprofiler on eddie3 / SGE clusters
4 stars 2 forks source link

use hash of config yaml as job suffix rather than random digits #29

Open Swarchal opened 6 years ago

Swarchal commented 6 years ago

therefore if the config hasn't changed, the job name should stay the same if cptools2 is run on the file again.

Swarchal commented 6 years ago

e.g:

import hashlib
hashlib.sha256("config as a string here".encode("utf-8")).hexdigest()[:10]