diff --git a/pynemo/profile.py b/pynemo/profile.py index ab394b1a77632da39171b895c342b8a287e33268..12f69ddc1b2c13fde1e2459bb95df2497985311d 100644 --- a/pynemo/profile.py +++ b/pynemo/profile.py @@ -97,6 +97,8 @@ def download_cmems(setup_filepath=0): Setup = setup.Setup(setup_filepath) # default settings file settings = Setup.settings + if settings['download_static'] == False: + logger.info('CMEMS static data download not requested') if settings['download_static'] == True: for re in range(settings['num_retry']): logger.info('CMEMS Static data requested: downloading static data now.... (this may take awhile)') @@ -121,6 +123,8 @@ def download_cmems(setup_filepath=0): sys.exit(static) dl_cmems.clean_up(settings) # subset downloaded static grid files to match downloaded CMEMS data + if settings['subset_static'] == False: + logger.info('CMEMS subset static data not requested') if settings['subset_static'] == True: logger.info('CMEMS subset static data requested: subsetting now......') subset_static = dl_cmems.subset_static(settings) @@ -132,6 +136,9 @@ def download_cmems(setup_filepath=0): sys.exit(subset_static) dl_cmems.clean_up(settings) + if settings['download_cmems'] == False: + logger.info('CMEMS Boundary data download not requested') + if settings['download_cmems'] == True: logger.info('CMEMS Boundary data requested: starting download process....') diff --git a/unit_tests/unit_test.py b/unit_tests/unit_test.py index 2f041ade946dbf909bfc3d28e6089d08534e599d..1daf0feeaf07eb89f436dd806d28327fdc1d1738 100644 --- a/unit_tests/unit_test.py +++ b/unit_tests/unit_test.py @@ -59,6 +59,9 @@ def test_salinty(): assert abs(sal_[sal_ != 0.0].max() - 35) <= 0.001 assert abs(sal_[sal_ != 0.0].min() - 35) <= 0.001 +# TODO: add in checking so that settings in the bdy file are checked to see if +# U and V and SSH tests are required. e.g. ln_dyn2d is set to true. + def test_ssh(): test_files = glob.glob('unit_tests/test_outputs/*bdyT*') if len(test_files) == 0: