1313def rootdir ():
1414 config_manager = ConfigManager ()
1515 pygem_prms = config_manager .read_config ()
16- # need to remove '_tw' suffix from root since we'll use results from sample_data produced in simple_test.ipynb
17- pygem_prms ['root' ] = pygem_prms ['root' ].replace ('sample_data_tw' , 'sample_data' )
1816 return pygem_prms ['root' ]
1917
2018
@@ -23,7 +21,7 @@ def test_postproc_monthly_mass(rootdir):
2321 Test the postproc_monthly_mass CLI script.
2422 """
2523 simdir = os .path .join (
26- rootdir , 'Output' , 'simulations' , '15 ' , 'CESM2' , 'ssp245' , 'stats'
24+ rootdir , 'Output' , 'simulations' , '01 ' , 'CESM2' , 'ssp245' , 'stats'
2725 )
2826
2927 # Run postproc_monthyl_mass CLI script
@@ -40,9 +38,9 @@ def test_postproc_compile_simulations(rootdir):
4038 [
4139 'postproc_compile_simulations' ,
4240 '-rgi_region01' ,
43- '15 ' ,
41+ '01 ' ,
4442 '-option_calibration' ,
45- 'HH2015 ' ,
43+ 'MCMC ' ,
4644 '-sim_climate_name' ,
4745 'CESM2' ,
4846 '-sim_climate_scenario' ,
@@ -79,11 +77,11 @@ def test_check_compiled_product(rootdir):
7977 rootdir ,
8078 'Output' ,
8179 'simulations' ,
82- '15 ' ,
80+ '01 ' ,
8381 'CESM2' ,
8482 'ssp245' ,
8583 'stats' ,
86- '15.03733_CESM2_ssp245_HH2015_ba1_1sets_2000_2100_all .nc' ,
84+ '1.03622_CESM2_ssp245_MCMC_ba1_50sets_2000_2100_all .nc' ,
8785 )
8886 compdir = os .path .join (rootdir , 'Output' , 'simulations' , 'compile' , 'glacier_stats' )
8987
@@ -95,9 +93,12 @@ def test_check_compiled_product(rootdir):
9593 vars_to_check = [item for item in vars_to_check if item not in vars_to_skip ]
9694
9795 for var in vars_to_check :
96+ # skip mad
97+ if 'mad' in var :
98+ continue
9899 simvar = simds [var ]
99- comppath = os .path .join (compdir , var , '15 ' )
100- comppath = glob .glob (f'{ comppath } /R15_ { var } *.nc' )[0 ]
100+ comppath = os .path .join (compdir , var , '01 ' )
101+ comppath = glob .glob (f'{ comppath } /R01_ { var } *.nc' )[0 ]
101102 assert os .path .isfile (comppath ), (
102103 f'Compiled product not found for { var } at { comppath } '
103104 )
0 commit comments