-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update API usage in tests, along with reference data (#8)
* update test to check generated configuration against reference * fix auto-formatted reference file * fix download * remove reference files with absolute paths * minor fixes and `nemspy` API updates * minor fixes and `nemspy` API updates * comment out spinup start and end dates * update examples to use new constructor * remove version pin * only extract specific files * add print debugging * fix string * remove `atm_namelist.rc.*` as it is just a symlink * unformat * fix partial run
- Loading branch information
1 parent
c8118c1
commit 44b2cf4
Showing
26 changed files
with
13,170 additions
and
70 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,7 +20,7 @@ | |
OUTPUT_DIRECTORY = (Path(__file__).parent / '../data') / 'configuration' / 'hera' / 'shinnecock' / 'ike' | ||
|
||
if __name__ == '__main__': | ||
runs = {f'nems_shinnecock_test': (None, None)} | ||
runs = {f'test_case_1': (None, None)} | ||
|
||
# init tidal forcing and setup requests | ||
tidal_forcing = Tides() | ||
|
@@ -30,7 +30,7 @@ | |
|
||
nems = ModelingSystem( | ||
start_time=datetime(2008, 8, 23), | ||
duration=timedelta(days=14.5), | ||
end_time=datetime(2008, 8, 23) + timedelta(days=14.5), | ||
interval=timedelta(hours=1), | ||
atm=AtmosphericMeshEntry(FORCINGS_DIRECTORY / 'wind_atm_fin_ch_time_vec.nc'), | ||
wav=WaveMeshEntry(FORCINGS_DIRECTORY / 'ww3.Constant.20151214_sxy_ike_date.nc'), | ||
|
@@ -52,7 +52,7 @@ | |
runs, | ||
MESH_DIRECTORY, | ||
OUTPUT_DIRECTORY, | ||
name='nems_shinnecock_test', | ||
name='test_case_1', | ||
email_address='[email protected]', | ||
platform=Platform.HERA, | ||
spinup=timedelta(days=12.5), | ||
|
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 |
---|---|---|
|
@@ -20,7 +20,7 @@ | |
OUTPUT_DIRECTORY = (Path(__file__).parent / '../data') / 'configuration' / 'local' / 'hsofs' / 'ike' | ||
|
||
if __name__ == '__main__': | ||
runs = {f'nems_shinnecock_test': (None, None)} | ||
runs = {f'test_case_1': (None, None)} | ||
|
||
# init tidal forcing and setup requests | ||
tidal_forcing = Tides() | ||
|
@@ -30,7 +30,7 @@ | |
|
||
nems = ModelingSystem( | ||
start_time=datetime(2008, 8, 23), | ||
duration=timedelta(days=14.5), | ||
end_time=datetime(2008, 8, 23) + timedelta(days=14.5), | ||
interval=timedelta(hours=1), | ||
atm=AtmosphericMeshEntry(FORCINGS_DIRECTORY / 'wind_atm_fin_ch_time_vec.nc'), | ||
wav=WaveMeshEntry(FORCINGS_DIRECTORY / 'ww3.Constant.20151214_sxy_ike_date.nc'), | ||
|
@@ -52,7 +52,7 @@ | |
runs, | ||
MESH_DIRECTORY, | ||
OUTPUT_DIRECTORY, | ||
name='nems_shinnecock_test', | ||
name='test_case_1', | ||
email_address='[email protected]', | ||
platform=Platform.LOCAL, | ||
spinup=timedelta(days=12.5), | ||
|
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 |
---|---|---|
|
@@ -20,7 +20,7 @@ | |
OUTPUT_DIRECTORY = (Path(__file__).parent / '../data') / 'configuration' / 'stampede2' / 'shinnecock' / 'ike' | ||
|
||
if __name__ == '__main__': | ||
runs = {f'nems_shinnecock_test': (None, None)} | ||
runs = {f'test_case_1': (None, None)} | ||
|
||
# init tidal forcing and setup requests | ||
tidal_forcing = Tides() | ||
|
@@ -30,7 +30,7 @@ | |
|
||
nems = ModelingSystem( | ||
start_time=datetime(2008, 8, 23), | ||
duration=timedelta(days=14.5), | ||
end_time=datetime(2008, 8, 23) + timedelta(days=14.5), | ||
interval=timedelta(hours=1), | ||
atm=AtmosphericMeshEntry(FORCINGS_DIRECTORY / 'wind_atm_fin_ch_time_vec.nc'), | ||
wav=WaveMeshEntry(FORCINGS_DIRECTORY / 'ww3.Constant.20151214_sxy_ike_date.nc'), | ||
|
@@ -52,7 +52,7 @@ | |
runs, | ||
MESH_DIRECTORY, | ||
OUTPUT_DIRECTORY, | ||
name='nems_shinnecock_test', | ||
name='test_case_1', | ||
email_address='[email protected]', | ||
platform=Platform.STAMPEDE2, | ||
spinup=timedelta(days=12.5), | ||
|
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
14 changes: 14 additions & 0 deletions
14
tests/data/test_shinnecock_configuration/reference/model_configure.coldstart
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,14 @@ | ||
# `model_configure` generated with NEMSpy 0.2.2.post14.dev0+21597a1 | ||
total_member: 1 | ||
print_esmf: .true. | ||
namelist: atm_namelist | ||
PE_MEMBER01: 382 | ||
start_year: 2008 | ||
start_month: 8 | ||
start_day: 10 | ||
start_hour: 12 | ||
start_minute: 0 | ||
start_second: 0 | ||
nhours_fcst: 300 | ||
RUN_CONTINUE: .false. | ||
ENS_SPS: .false. |
14 changes: 14 additions & 0 deletions
14
tests/data/test_shinnecock_configuration/reference/model_configure.hotstart
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,14 @@ | ||
# `model_configure` generated with NEMSpy 0.2.2.post14.dev0+21597a1 | ||
total_member: 1 | ||
print_esmf: .true. | ||
namelist: atm_namelist | ||
PE_MEMBER01: 384 | ||
start_year: 2008 | ||
start_month: 8 | ||
start_day: 23 | ||
start_hour: 0 | ||
start_minute: 0 | ||
start_second: 0 | ||
nhours_fcst: 348 | ||
RUN_CONTINUE: .false. | ||
ENS_SPS: .false. |
20 changes: 20 additions & 0 deletions
20
tests/data/test_shinnecock_configuration/reference/nems.configure.coldstart
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,20 @@ | ||
# `nems.configure` generated with NEMSpy 0.2.2.post14.dev0+21597a1 | ||
# EARTH # | ||
EARTH_component_list: OCN | ||
EARTH_attributes:: | ||
Verbosity = off | ||
:: | ||
|
||
# OCN # | ||
OCN_model: adcirc | ||
OCN_petlist_bounds: 0 381 | ||
OCN_attributes:: | ||
Verbosity = off | ||
:: | ||
|
||
# Run Sequence # | ||
runSeq:: | ||
@3600 | ||
OCN | ||
@ | ||
:: |
Oops, something went wrong.