Skip to content

Commit

Permalink
fix metapath
Browse files Browse the repository at this point in the history
  • Loading branch information
JordanLaserGit committed Jan 5, 2024
1 parent 95fd2c6 commit a54f0e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions forcingprocessor/src/forcingprocessor/forcingprocessor.py
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,7 @@ def multiprocess_write(data,t_ax,catchments,nprocs,output_bucket,out_path,ii_app
else:
flat_ids = ids
dfs = dfs
flat_filenames = filenames

return flat_ids, flat_dfs, flat_filenames

Expand Down Expand Up @@ -789,9 +790,8 @@ def prep_ngen_data(conf):

combined_tar.add(tmpfile.name, arcname=jfilename)
else:
del dfs, filenames, forcing_cat_ids
path = str(metaf_path)
meta_rel_forcings = forcing_path / ".." / "/metadata/forcings_metadata/"
meta_rel_forcings = "../metadata/forcings_metadata/"
combined_tar_filename = str(forcing_path) + '/forcings.tar.gz'
tar_cmd = f'tar -czf {combined_tar_filename} -C {forcing_path} .'
if ii_collect_stats: tar_cmd += f' -C {meta_rel_forcings} .'
Expand Down

0 comments on commit a54f0e8

Please sign in to comment.