-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcreate_yml.py
29 lines (21 loc) · 1020 Bytes
/
create_yml.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
from utils.parse_yaml import cpac_yaml
import os
import click
@click.command()
@click.option('--pipeline1', required=True, type=str, help='Path to output directory from CPAC run '
'to correlate against pipeline2')
@click.option('--pipeline2', required=True, type=str, help='Path to output directory from CPAC run '
'to correlate against pipeline1')
@click.option('--workspace', type=str, help = 'directory to save correlations')
@click.option('--branch', type=str, help = 'branch name')
@click.option('--data_source', type=str, help = 'Data site')
def main(pipeline1, pipeline2, workspace, branch, data_source):
"""
Correlate outputs from regression run again another C-PAC version.
"""
git_home = os.path.normpath(os.path.dirname(os.path.abspath(__file__)) + os.sep + os.pardir)
run_name = f'{branch}_{data_source}'
cpac_yaml(pipeline1, pipeline2, f'{workspace}/correlations', run_name, 1, branch, data_source)
return
if __name__ == "__main__":
main()