Skip to content

Commit

Permalink
fix naming
Browse files Browse the repository at this point in the history
  • Loading branch information
JordanLaserGit committed Sep 30, 2024
1 parent 659763a commit 71175ea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
3 changes: 0 additions & 3 deletions forcingprocessor/src/forcingprocessor/processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -755,9 +755,6 @@ def prep_ngen_data(conf):
json.dump(conf, f)
cp_cmd = f'cp {nwm_file} {metaf_path}'
os.system(cp_cmd)
for jgpkg in gpkg_files:
cp_cmd = f'cp {jgpkg} {metaf_path}'
os.system(cp_cmd)

elif storage_type == "s3":
bucket_path = output_path
Expand Down
4 changes: 2 additions & 2 deletions forcingprocessor/src/forcingprocessor/weights_hf2ds.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@ def hf2ds(files : list):
jcatchment_dict = {}
count = 0
for jgpkg in files:
pattern = r'VPU_([^/]+)'
pattern = r'vpuid%3D([^/]+)'
match = re.search(pattern, jgpkg)
if match: jname = "VPU_" + match.group(1)
else:
count +=1
jname = str(count)
new_dict = hydrofabric2datastream_weights(jgpkg)
weights_json = weights_json | new_dict
jcatchment_dict[jname] = list(weights_json.keys())
jcatchment_dict[jname] = list(new_dict.keys())

return weights_json, jcatchment_dict

Expand Down

0 comments on commit 71175ea

Please sign in to comment.