From 09ac4ae36756cf8d30fbc17afaa821f3f797384d Mon Sep 17 00:00:00 2001 From: Jordan Laser Date: Mon, 30 Sep 2024 12:44:15 -0600 Subject: [PATCH] fix --- forcingprocessor/tests/test_forcingprocessor.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/forcingprocessor/tests/test_forcingprocessor.py b/forcingprocessor/tests/test_forcingprocessor.py index 72a967f2..983f75a6 100644 --- a/forcingprocessor/tests/test_forcingprocessor.py +++ b/forcingprocessor/tests/test_forcingprocessor.py @@ -24,7 +24,7 @@ filenamelist = str((pwd/"filenamelist.txt").resolve()) retro_filenamelist = str((pwd/"retro_filenamelist.txt").resolve()) geopackage_name = "palisade.gpkg" -os.system(f"curl -o {os.path.join(data_dir,geopackage_name)} -L -O https://ngen-datastream/palisade.gpkg") +os.system(f"curl -o {os.path.join(data_dir,geopackage_name)} -L -O https://ngen-datastream.s3.us-east-2.amazonaws.com/palisade.gpkg") weights_name = "01_weights.parquet" os.system(f"curl -o {os.path.join(data_dir,weights_name)} -L -O https://lynker-spatial.s3-us-west-2.amazonaws.com/hydrofabric/{HF_VERSION}/nextgen/conus_forcing-weights/vpuid%3D01/part-0.parquet") assert_file=(data_dir/f"forcings/cat-2586011.parquet").resolve() @@ -212,13 +212,11 @@ def test_plotting(): def test_s3_output(): test_bucket = "ciroh-community-ngen-datastream" conf['forcing']['nwm_file'] = retro_filenamelist - conf['storage']['output_path'] = f's3://{test_bucket}/pytest_fp/' + conf['storage']['output_path'] = f's3://{test_bucket}/pytest_fp' conf['storage']['output_file_type'] = ["netcdf"] nwmurl_conf_retro["urlbaseinput"] = 4 generate_nwmfiles(nwmurl_conf_retro) - prep_ngen_data(conf) - os.system(f"aws s3api wait object-exists --bucket {test_bucket} --key {test_bucket}/pytest_fp/forcings/1_forcings.nc") - os.system(f"aws s3api delete-object --bucket {test_bucket} --key {test_bucket}/pytest_fp/forcings/1_forcings.nc") + prep_ngen_data(conf) conf['storage']['output_path'] = str(data_dir) def test_muliple_weights():