Skip to content

Commit

Permalink
Fix runconfig references
Browse files Browse the repository at this point in the history
  • Loading branch information
winstonolson committed Aug 18, 2023
1 parent 15ce3ee commit 3596959
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions emit_utils/daac_converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3596959

Please sign in to comment.