From 3596959d5f1b103e82179361ffd4d5ed3b0a7ab2 Mon Sep 17 00:00:00 2001 From: Winston Olson-Duvall Date: Fri, 18 Aug 2023 15:19:09 -0700 Subject: [PATCH] Fix runconfig references --- emit_utils/daac_converter.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/emit_utils/daac_converter.py b/emit_utils/daac_converter.py index 575a9a2..9cb4db9 100644 --- a/emit_utils/daac_converter.py +++ b/emit_utils/daac_converter.py @@ -240,9 +240,9 @@ def makeGlobalAttr(nc_ds: netCDF4.Dataset, primary_envi_file: str, software_deli if rdn_runconfig_file is not None: with open(rdn_runconfig_file, "r") as f: runconfig = json.load(f) - ffupdate_files = [os.path.basename(p) for p in runconfig["flat_field_update_paths"]] - ffupdate_str = ",".join(ffupdate_files) - primary_ds.metadata['emit pge input files'].append(f"ffupdate_files=[{ffupdate_str}]") + ffupdate_files = [os.path.basename(p) for p in runconfig["flat_field_update_paths"]] + ffupdate_str = ",".join(ffupdate_files) + primary_ds.metadata['emit pge input files'].append(f"ffupdate_files=[{ffupdate_str}]") run_command = "PGE Run Command: {" + primary_ds.metadata['emit pge run command'] + "}" input_files = "PGE Input Files: {" + ", ".join(primary_ds.metadata['emit pge input files']) + "}" nc_ds.history = run_command + ", " + input_files