Skip to content

Commit

Permalink
#1035: Can't get rid of the entire runconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
philipjyoon committed Dec 9, 2024
1 parent 298105e commit 495abca
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion product2dataset/product2dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,8 +278,9 @@ def convert(
for file in dataset_met_json["Files"]:
logger.info("Files keys: "+ str(file.keys()))
logger.info("Removing runconfig and lineage from each file")
file["runconfig"] = _DELETED_TEXT # Runconfig for the entire product is already at metadata level so no point in duplicating for each file
file["lineage"] = _DELETED_TEXT # Lineage for the entire product is already at metadata level so no point in duplicating for each file
file["runconfig"]["localize"] = _DELETED_TEXT # this is superfulous
file["runconfig"]["input_file_group"]["input_file_paths"] = _DELETED_TEXT # this is superfulous

logger.info("Reducing lineage string size by truncating basepath of lineage entries")
if len(dataset_met_json["lineage"]) > 0:
Expand Down

0 comments on commit 495abca

Please sign in to comment.