Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
JordanLaserGit committed Sep 30, 2024
1 parent 6fe25bf commit 09ac4ae
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions forcingprocessor/tests/test_forcingprocessor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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():
Expand Down

0 comments on commit 09ac4ae

Please sign in to comment.