Skip to content

Commit

Permalink
Remove e3sm_to_cmip_environment_commands
Browse files Browse the repository at this point in the history
  • Loading branch information
forsyth2 committed Aug 4, 2023
1 parent 59bcf6b commit 58238ff
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 13 deletions.
1 change: 0 additions & 1 deletion tests/integration/template_bundles.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ years = "1850:1854:2", "1850:1854:4",
[ts]
active = True
bundle = "bundle1"
e3sm_to_cmip_environment_commands = "#expand e3sm_to_cmip_environment_commands#"
years = "1850:1854:2",

[[ atm_monthly_180x360_aave ]]
Expand Down
1 change: 0 additions & 1 deletion tests/integration/template_complete_run.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ years = "1850:1854:2", "1850:1854:4",

[ts]
active = True
e3sm_to_cmip_environment_commands = "#expand e3sm_to_cmip_environment_commands#"
walltime = "00:30:00"
years = "1850:1854:2",

Expand Down
3 changes: 0 additions & 3 deletions tests/integration/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,6 @@ def get_chyrsalis_expansions(config):
# To run this test, replace conda environment with your e3sm_diags dev environment
"diags_environment_commands": "source /home/ac.forsyth2/miniconda3/etc/profile.d/conda.sh; conda activate e3sm_diags_20230731",
"diags_walltime": "2:00:00",
"e3sm_to_cmip_environment_commands": "source /home/ac.forsyth2/miniconda3/etc/profile.d/conda.sh; conda activate e3sm_to_cmip_fix_np",
"environment_commands_test": "source /lcrc/soft/climate/e3sm-unified/test_e3sm_unified_1.9.0rc9_chrysalis.sh",
"expected_dir": "/lcrc/group/e3sm/public_html/zppy_test_resources/",
"partition_long": "compute",
Expand All @@ -161,7 +160,6 @@ def get_compy_expansions(config):
# To run this test, replace conda environment with your e3sm_diags dev environment
"diags_environment_commands": "source /qfs/people/fors729/miniconda3/etc/profile.d/conda.sh; conda activate e3sm_diags_dev_20220722",
"diags_walltime": "03:00:00",
"e3sm_to_cmip_environment_commands": "",
"environment_commands_test": "source /share/apps/E3SM/conda_envs/test_e3sm_unified_1.8.0rc6_compy.sh",
"expected_dir": "/compyfs/www/zppy_test_resources/",
"partition_long": "slurm",
Expand All @@ -186,7 +184,6 @@ def get_perlmutter_expansions(config):
# To run this test, replace conda environment with your e3sm_diags dev environment
"diags_environment_commands": "source /global/homes/f/forsyth/miniconda3/etc/profile.d/conda.sh; conda activate e3sm_diags_20230728",
"diags_walltime": "6:00:00",
"e3sm_to_cmip_environment_commands": "",
"environment_commands_test": "source /global/common/software/e3sm/anaconda_envs/test_e3sm_unified_1.9.0rc9_pm-cpu.sh",
"expected_dir": "/global/cfs/cdirs/e3sm/www/zppy_test_resources/",
"partition_long": "",
Expand Down
5 changes: 0 additions & 5 deletions tests/test_sections.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,6 @@ def test_sections(self):
"area_nm": "area",
"cmip_metadata": "e3sm_to_cmip/default_metadata.json",
"dpf": 30,
"e3sm_to_cmip_environment_commands": "",
"extra_vars": "",
"mapping_file": "MAPPING_FILE_TS",
"tpd": 1,
Expand All @@ -124,7 +123,6 @@ def test_sections(self):
"debug": False,
"dpf": 30,
"dry_run": False,
"e3sm_to_cmip_environment_commands": "",
"environment_commands": "",
"extra_vars": "",
"frequency": "monthly",
Expand Down Expand Up @@ -255,7 +253,6 @@ def test_subsections(self):
"area_nm": "area",
"cmip_metadata": "e3sm_to_cmip/default_metadata.json",
"dpf": 30,
"e3sm_to_cmip_environment_commands": "",
"extra_vars": "",
"tpd": 1,
"ts_fmt": "ts_only",
Expand Down Expand Up @@ -297,7 +294,6 @@ def test_subsections(self):
"debug": False,
"dpf": 30,
"dry_run": False,
"e3sm_to_cmip_environment_commands": "",
"environment_commands": "",
"extra_vars": "",
"frequency": "monthly",
Expand Down Expand Up @@ -335,7 +331,6 @@ def test_subsections(self):
"debug": False,
"dpf": 30,
"dry_run": False,
"e3sm_to_cmip_environment_commands": "",
"environment_commands": "",
"extra_vars": "",
"frequency": "monthly",
Expand Down
1 change: 0 additions & 1 deletion zppy/templates/default.ini
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ area_nm = string(default="area")
cmip_metadata = string(default="e3sm_to_cmip/default_metadata.json")
# Days per file
dpf = integer(default=30)
e3sm_to_cmip_environment_commands = string(default="")
extra_vars = string(default="")
# Time-steps per day
tpd = integer(default=1)
Expand Down
2 changes: 0 additions & 2 deletions zppy/templates/ts.bash
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,6 @@ EOF
input_dir={{ output }}/post/{{ component }}/{{ grid }}/ts/{{ frequency }}/{{ '%dyr' % (ypf) }}
dest_cmip={{ output }}/post/{{ component }}/{{ grid }}/cmip_ts/{{ frequency }}
mkdir -p ${dest_cmip}
{{ e3sm_to_cmip_environment_commands }}
srun -N 1 e3sm_to_cmip \
--output-path \
${dest_cmip}/${tmp_dir} \
Expand Down Expand Up @@ -179,7 +178,6 @@ EOF
exit 4
fi
{{ environment_commands }}
# Move output ts files to final destination
mv ${dest_cmip}/${tmp_dir}/CMIP6/CMIP/*/*/*/*/*/*/*/*/*.nc ${dest_cmip}
if [ $? != 0 ]; then
Expand Down

0 comments on commit 58238ff

Please sign in to comment.