File tree Expand file tree Collapse file tree 1 file changed +15
-14
lines changed Expand file tree Collapse file tree 1 file changed +15
-14
lines changed Original file line number Diff line number Diff line change 1
- # This config file is being used as a singleton. Because python creates a single instance
2
- # of modules when they're imported, we rely on the Snakefile instantiating the module.
3
- # In particular, when the Snakefile calls init_config, it will reassign config
4
- # to take the value of the actual config provided by Snakemake. After that point, any
5
- # module that imports this module can access a config option by checking the object's
6
- # value. For example
7
- #
8
- # import spras.config as config
9
- # container_framework = config.config.container_framework
10
- #
11
- # will grab the top level registry configuration option as it appears in the config file
1
+ """
2
+ This config file is being used as a singleton. Because python creates a single instance
3
+ of modules when they're imported, we rely on the Snakefile instantiating the module.
4
+ In particular, when the Snakefile calls init_config, it will reassign config
5
+ to take the value of the actual config provided by Snakemake. After that point, any
6
+ module that imports this module can access a config option by checking the object's
7
+ value. For example
8
+
9
+ import spras.config as config
10
+ container_framework = config.config.container_framework
11
+
12
+ will grab the top level registry configuration option as it appears in the config file
13
+ """
12
14
13
15
import copy as copy
14
16
import itertools as it
15
17
import os
18
+ from urllib .parse import urljoin
16
19
17
20
import numpy as np
18
21
import yaml
19
- import copy as copy
20
- import os
21
- from urllib .parse import urljoin
22
+
22
23
from spras .util import hash_params_sha1_base32
23
24
24
25
# The default length of the truncated hash used to identify parameter combinations
You can’t perform that action at this time.
0 commit comments