Skip to content

Commit

Permalink
Updated pge_functions.disp_s1_lineage_metadata() to account for new l…
Browse files Browse the repository at this point in the history
…ocation of algorithm parameters override config
  • Loading branch information
Scott Collins committed Nov 12, 2024
1 parent 42f57ad commit 7c07421
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions wrapper/pge_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,10 @@ def disp_s1_lineage_metadata(context, work_dir):
)
lineage_metadata.append(local_algorithm_parameters_filepath)

# Algorithm parameters overrides has already been downloaded to local disk
local_algorithm_parameters_overrides_filepath = run_config["processing"]["algorithm_parameters_overrides_json"]
lineage_metadata.append(local_algorithm_parameters_overrides_filepath)

local_frame_database_filepath = os.path.join(
work_dir, basename(run_config["static_ancillary_file_group"]["frame_to_burst_json"])
)
Expand All @@ -181,11 +185,6 @@ def disp_s1_lineage_metadata(context, work_dir):
)
lineage_metadata.append(local_reference_date_database)

local_algorithm_parameters_overrides_filepath = os.path.join(
work_dir, basename(run_config["static_ancillary_file_group"]["algorithm_parameters_overrides_json"])
)
lineage_metadata.append(local_algorithm_parameters_overrides_filepath)

return lineage_metadata


Expand Down Expand Up @@ -361,8 +360,7 @@ def update_disp_s1_runconfig(context, work_dir):

static_ancillary_file_group = run_config["static_ancillary_file_group"]

for static_ancillary_key in ("frame_to_burst_json", "reference_date_database_json",
"algorithm_parameters_overrides_json"):
for static_ancillary_key in ("frame_to_burst_json", "reference_date_database_json"):
static_ancillary_file_group[static_ancillary_key] = os.path.join(
container_home_prefix, basename(static_ancillary_file_group[static_ancillary_key])
)
Expand Down

0 comments on commit 7c07421

Please sign in to comment.