-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
24 changed files
with
371 additions
and
295 deletions.
There are no files selected for viewing
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
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
64 changes: 64 additions & 0 deletions
64
...tion/generated/test_min_case_global_time_series_comprehensive_v3_setup_only_chrysalis.cfg
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,64 @@ | ||
[default] | ||
case = "v3.LR.historical_0051" | ||
constraint = "" | ||
dry_run = "False" | ||
environment_commands = "" | ||
fail_on_dependency_skip = True | ||
guess_path_parameters = False | ||
guess_section_parameters = False | ||
input = /lcrc/group/e3sm2/ac.wlin/E3SMv3/v3.LR.historical_0051 | ||
input_subdir = archive/atm/hist | ||
mapping_file = "map_ne30pg2_to_cmip6_180x360_aave.20200201.nc" | ||
output = "/lcrc/group/e3sm/ac.forsyth2/zppy_min_case_global_time_series_comprehensive_v3_setup_only_output/unique_id/v3.LR.historical_0051" | ||
partition = "debug" | ||
qos = "regular" | ||
www = "/lcrc/group/e3sm/public_html/diagnostic_output/ac.forsyth2/zppy_min_case_global_time_series_comprehensive_v3_setup_only_www/unique_id" | ||
years = "1985:1989:2", | ||
|
||
[ts] | ||
active = True | ||
e3sm_to_cmip_environment_commands = "" | ||
walltime = "00:30:00" | ||
|
||
[[ atm_monthly_glb ]] | ||
# Note global average won't work for 3D variables. | ||
frequency = "monthly" | ||
input_files = "eam.h0" | ||
input_subdir = "archive/atm/hist" | ||
mapping_file = "glb" | ||
years = "1985:1995:5", | ||
|
||
[[ lnd_monthly_glb ]] | ||
frequency = "monthly" | ||
input_files = "elm.h0" | ||
input_subdir = "archive/lnd/hist" | ||
mapping_file = "glb" | ||
vars = "FSH,RH2M,LAISHA,LAISUN,QINTR,QOVER,QRUNOFF,QSOIL,QVEGE,QVEGT,SOILWATER_10CM,TSA,H2OSNO,TOTLITC,CWDC,SOIL1C,SOIL2C,SOIL3C,SOIL4C,WOOD_HARVESTC,TOTVEGC,NBP,GPP,AR,HR" | ||
years = "1985:1995:5", | ||
|
||
[mpas_analysis] | ||
active = True | ||
anomalyRefYear = 1985 | ||
climo_years = "1985-1989", "1990-1995", | ||
enso_years = "1985-1989", "1990-1995", | ||
mesh = "IcoswISC30E3r5" | ||
parallelTaskCount = 6 | ||
partition = "compute" | ||
qos = "regular" | ||
shortTermArchive = True | ||
ts_years = "1985-1989", "1985-1995", | ||
walltime = "00:30:00" | ||
|
||
# (This cfg is the setup portion only) | ||
# [global_time_series] | ||
# active = True | ||
# climo_years = "1985-1989", "1990-1995", | ||
# environment_commands = "source <INSERT PATH TO CONDA>/conda.sh; conda activate <INSERT ENV NAME>" | ||
# experiment_name = "v3.LR.historical_0051" | ||
# figstr = "v3.LR.historical_0051" | ||
# moc_file=mocTimeSeries_1985-1995.nc | ||
# plots_lnd = "FSH,RH2M,LAISHA,LAISUN,QINTR,QOVER,QRUNOFF,QSOIL,QVEGE,QVEGT,SOILWATER_10CM,TSA,H2OSNO,TOTLITC,CWDC,SOIL1C,SOIL2C,SOIL3C,SOIL4C,WOOD_HARVESTC,TOTVEGC,NBP,GPP,AR,HR" | ||
# ts_num_years = 5 | ||
# ts_years = "1985-1989", "1985-1995", | ||
# walltime = "00:30:00" | ||
# years = "1985-1995", |
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
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
64 changes: 64 additions & 0 deletions
64
tests/integration/template_min_case_global_time_series_comprehensive_v3_setup_only.cfg
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,64 @@ | ||
[default] | ||
case = "#expand case_name#" | ||
constraint = "#expand constraint#" | ||
dry_run = "#expand dry_run#" | ||
environment_commands = "#expand environment_commands#" | ||
fail_on_dependency_skip = True | ||
guess_path_parameters = False | ||
guess_section_parameters = False | ||
input = /lcrc/group/e3sm2/ac.wlin/E3SMv3/#expand case_name# | ||
input_subdir = archive/atm/hist | ||
mapping_file = "map_ne30pg2_to_cmip6_180x360_aave.20200201.nc" | ||
output = "#expand user_output#zppy_min_case_global_time_series_comprehensive_v3_setup_only_output/#expand unique_id#/#expand case_name#" | ||
partition = "#expand partition_short#" | ||
qos = "#expand qos_short#" | ||
www = "#expand user_www#zppy_min_case_global_time_series_comprehensive_v3_setup_only_www/#expand unique_id#" | ||
years = "1985:1989:2", | ||
|
||
[ts] | ||
active = True | ||
e3sm_to_cmip_environment_commands = "#expand e3sm_to_cmip_environment_commands#" | ||
walltime = "00:30:00" | ||
|
||
[[ atm_monthly_glb ]] | ||
# Note global average won't work for 3D variables. | ||
frequency = "monthly" | ||
input_files = "eam.h0" | ||
input_subdir = "archive/atm/hist" | ||
mapping_file = "glb" | ||
years = "1985:1995:5", | ||
|
||
[[ lnd_monthly_glb ]] | ||
frequency = "monthly" | ||
input_files = "elm.h0" | ||
input_subdir = "archive/lnd/hist" | ||
mapping_file = "glb" | ||
vars = "FSH,RH2M,LAISHA,LAISUN,QINTR,QOVER,QRUNOFF,QSOIL,QVEGE,QVEGT,SOILWATER_10CM,TSA,H2OSNO,TOTLITC,CWDC,SOIL1C,SOIL2C,SOIL3C,SOIL4C,WOOD_HARVESTC,TOTVEGC,NBP,GPP,AR,HR" | ||
years = "1985:1995:5", | ||
|
||
[mpas_analysis] | ||
active = True | ||
anomalyRefYear = 1985 | ||
climo_years = "1985-1989", "1990-1995", | ||
enso_years = "1985-1989", "1990-1995", | ||
mesh = "IcoswISC30E3r5" | ||
parallelTaskCount = 6 | ||
partition = "#expand partition_long#" | ||
qos = "#expand qos_long#" | ||
shortTermArchive = True | ||
ts_years = "1985-1989", "1985-1995", | ||
walltime = "#expand mpas_analysis_walltime#" | ||
|
||
# (This cfg is the setup portion only) | ||
# [global_time_series] | ||
# active = True | ||
# climo_years = "1985-1989", "1990-1995", | ||
# environment_commands = "#expand global_time_series_environment_commands#" | ||
# experiment_name = "#expand case_name#" | ||
# figstr = "#expand case_name#" | ||
# moc_file=mocTimeSeries_1985-1995.nc | ||
# plots_lnd = "FSH,RH2M,LAISHA,LAISUN,QINTR,QOVER,QRUNOFF,QSOIL,QVEGE,QVEGT,SOILWATER_10CM,TSA,H2OSNO,TOTLITC,CWDC,SOIL1C,SOIL2C,SOIL3C,SOIL4C,WOOD_HARVESTC,TOTVEGC,NBP,GPP,AR,HR" | ||
# ts_num_years = 5 | ||
# ts_years = "1985-1989", "1985-1995", | ||
# walltime = "00:30:00" | ||
# years = "1985-1995", |
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
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,25 +1,16 @@ | ||
import os | ||
import unittest | ||
|
||
from tests.integration.utils import get_expansions | ||
|
||
|
||
class TestBashGeneration(unittest.TestCase): | ||
def test_bash_generation(self): | ||
# cfg is not machine-specific | ||
self.assertEqual( | ||
os.system("zppy -c tests/integration/test_bash_generation.cfg"), 0 | ||
def test_bash_generation(): | ||
# cfg is not machine-specific | ||
assert os.system("zppy -c tests/integration/test_bash_generation.cfg") == 0 | ||
expected_dir = get_expansions()["expected_dir"] | ||
assert ( | ||
os.system( | ||
f"diff -bur -I 'templateDir' test_bash_generation_output/post/scripts {expected_dir}expected_bash_files" | ||
) | ||
expected_dir = get_expansions()["expected_dir"] | ||
self.assertEqual( | ||
os.system( | ||
f"diff -bur -I 'templateDir' test_bash_generation_output/post/scripts {expected_dir}expected_bash_files" | ||
), | ||
0, | ||
) | ||
self.assertEqual(os.system("rm -r test_bash_generation_output"), 0) | ||
|
||
|
||
if __name__ == "__main__": | ||
# Run from top level of repo | ||
unittest.main() | ||
== 0 | ||
) | ||
assert os.system("rm -r test_bash_generation_output") == 0 |
Oops, something went wrong.