-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #754 from maxplanck-ie/develop
Develop - for the 2.5 release
- Loading branch information
Showing
20 changed files
with
206 additions
and
112 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
#!/usr/bin/env python | ||
|
||
import subprocess as sp | ||
import sys | ||
import argparse | ||
|
||
sys.path.append("..") | ||
from snakePipes import common_functions as cf | ||
|
||
|
||
def parse_args(): | ||
parser = argparse.ArgumentParser() | ||
required = parser.add_argument_group('Required Arguments') | ||
required.add_argument("-d", | ||
dest="envs_chunk", | ||
help="chunk of env to be used when running `snakePipes createEnvs`", | ||
required=True) | ||
return parser | ||
|
||
|
||
parser = parse_args() | ||
args = parser.parse_args() | ||
|
||
keys = [] | ||
length = len(cf.set_env_yamls().items()) | ||
index = length / 3 | ||
index = round(index) | ||
if args.envs_chunk == str(1): | ||
envs = range(0, index) | ||
elif args.envs_chunk == str(2): | ||
envs = range(index, 2 * index) | ||
elif args.envs_chunk == str(3): | ||
envs = range(2 * index, length) | ||
|
||
for i in range(index): | ||
keys.append(list(cf.set_env_yamls())[i]) | ||
envs_to_test = " ".join(keys) | ||
sp.check_output("snakePipes createEnvs --only {} --force".format(envs_to_test), shell=True) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
package: | ||
name: snakepipes | ||
version: 2.4.3 | ||
version: 2.5.0 | ||
|
||
source: | ||
path: ../ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
__version__ = '2.4.3' | ||
__version__ = '2.5.0' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.