Skip to content

Commit ed8e8f6

Browse files
committed
More post-rebase cleanup
1 parent fd85f1e commit ed8e8f6

File tree

1 file changed

+15
-14
lines changed

1 file changed

+15
-14
lines changed

spras/config.py

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,25 @@
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+
"""
1214

1315
import copy as copy
1416
import itertools as it
1517
import os
18+
from urllib.parse import urljoin
1619

1720
import numpy as np
1821
import yaml
19-
import copy as copy
20-
import os
21-
from urllib.parse import urljoin
22+
2223
from spras.util import hash_params_sha1_base32
2324

2425
# The default length of the truncated hash used to identify parameter combinations

0 commit comments

Comments
 (0)