Skip to content

Commit

Permalink
Update create_experiment.py
Browse files Browse the repository at this point in the history
removed special handling of pslot in create_experments
  • Loading branch information
TerrenceMcGuinness-NOAA committed Jul 11, 2023
1 parent 46e2935 commit 84a70e7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions ci/scripts/create_experiment.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ def input_args():
setup_expt_args = YAMLFile(path=user_inputs.yaml)

HOMEgfs = Path.absolute(Path(user_inputs.dir))
pslot = Path(user_inputs.yaml).stem
type = setup_expt_args.experiment.type
mode = setup_expt_args.experiment.mode

Expand All @@ -100,11 +99,10 @@ def input_args():
logger.info(f'Run command: {setup_expt_cmd.command}')
setup_expt_stderr = str(Path.joinpath(HOMEgfs, 'ci', 'scripts', 'setup_expt.stderr'))
setup_expt_stdout = str(Path.joinpath(HOMEgfs, 'ci', 'scripts', 'setup_expt.stdout'))
print(setup_expt_stderr)
setup_expt_cmd(output=setup_expt_stdout, error=setup_expt_stderr)

setup_xml_cmd = Executable(Path.joinpath(HOMEgfs, 'workflow', 'setup_xml.py'))
expdir = Path.absolute(Path.joinpath(Path(setup_expt_args.arguments.expdir), Path(pslot)))
expdir = Path.absolute(Path.joinpath(Path(setup_expt_args.arguments.expdir)))
setup_xml_cmd.add_default_arg(str(expdir))

logger.info(f'Run command: {setup_xml_cmd.command}')
Expand Down

0 comments on commit 84a70e7

Please sign in to comment.