Skip to content

Commit

Permalink
#141 Create --use functionality
Browse files Browse the repository at this point in the history
- user can specify if combining tool is being used for compile or postprocessing
- makes separate full combined yamls
- this was because `name`, `platform, and `target` vary if compiling vs postprocessing
  • Loading branch information
singhd789 committed Sep 5, 2024
1 parent 5257265 commit 6923b63
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions fre/yamltools/freyamltools.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ def function(context, uppercase):
@click.option("-e",
"--experiment",
type=str,
help="Experiment name",
required=True)
help="Experiment name")
@click.option("-p",
"--platform",
type=str,
Expand All @@ -37,8 +36,12 @@ def function(context, uppercase):
type=str,
help="Target name",
required=True)
@click.option("--use",
type=str,
help="Process user is combining yamls for. Can pass 'compile' or 'pp'",
required=True)
@click.pass_context
def combine_yamls(context,yamlfile,experiment,platform,target):
def combine_yamls(context,yamlfile,experiment,platform,target,use):
"""
- Combine the model yaml with the compile, platform,
experiment, and analysis yamls
Expand Down

0 comments on commit 6923b63

Please sign in to comment.