Skip to content

Commit d9f6d47

Browse files
committed
Require augur version 16.0.0
This is necessary for the temporal colour scale introduced in the preceding commit. For searchibility i'll past the error message that you would get when running with <16.0.0 (which shouldn't be reachable as the snakemake pipeline should exit up front): ERROR: 'temporal' is not one of ['continuous', 'ordinal', 'categorical', 'boolean'] Validation of config/auspice_config_mpxv.json failed.
1 parent 76cc9d5 commit d9f6d47

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

Snakefile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
from packaging import version
2+
from augur.__version__ import __version__ as augur_version
3+
import sys
4+
5+
min_version = "16.0.0"
6+
if version.parse(augur_version) < version.parse(min_version):
7+
print("This pipeline needs a newer version of augur than you currently have...")
8+
print(f"Current augur version: {augur_version}. Minimum required: {min_version}")
9+
sys.exit(1)
10+
111
if not config:
212
configfile: "config/config_hmpxv1.yaml"
313

0 commit comments

Comments
 (0)