Skip to content

Commit b5145a9

Browse files
author
Scott Collins
committed
Reverted inadvertant removal of algorithm parameters file handling code for DSWx-S1 in pge_functions.py
1 parent 5f04bc5 commit b5145a9

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

wrapper/pge_functions.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,11 @@ def dswx_s1_lineage_metadata(context, work_dir):
103103
local_db_filepaths = glob.glob(os.path.join(work_dir, "*.sqlite*"))
104104
lineage_metadata.extend(local_db_filepaths)
105105

106+
local_algorithm_parameters_filepath = os.path.join(
107+
work_dir, basename(run_config["processing"]["algorithm_parameters"])
108+
)
109+
lineage_metadata.append(local_algorithm_parameters_filepath)
110+
106111
return lineage_metadata
107112

108113

@@ -344,6 +349,9 @@ def update_dswx_s1_runconfig(context, work_dir):
344349
}
345350
run_config["static_ancillary_file_group"] = updated_static_ancillary_file_paths
346351

352+
algorithm_parameters_filename = basename(run_config["processing"]["algorithm_parameters"])
353+
run_config["processing"]["algorithm_parameters"] = f'{container_home_prefix}/{algorithm_parameters_filename}'
354+
347355
return run_config
348356

349357

0 commit comments

Comments
 (0)