Skip to content

Commit

Permalink
Update aerosol_gas_tables.py
Browse files Browse the repository at this point in the history
  • Loading branch information
justin-richling authored Dec 13, 2024
1 parent 6ed4d54 commit 726a4fb
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions scripts/analysis/aerosol_gas_tables.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,9 @@ def aerosol_gas_tables(adfobj):
hist_locs = adfobj.get_cam_info("cam_hist_loc", required=True)

# Grab history file locations from config yaml file
hist_strs = adfobj.get_cam_info("aerosol_hist_str", required=True)
hist_strs = adfobj.get_cam_info("aerosol_hist_str")
if hist_strs is None:
hist_strs = ["cam.h0a"]*len(case_names)

# Check if this is test model vs baseline model
# If so, update test case(s) lists created above
Expand All @@ -186,7 +188,10 @@ def aerosol_gas_tables(adfobj):
hist_locs += [adfobj.get_baseline_info("cam_hist_loc")]

# Grab history file locations from config yaml file
hist_strs = +[adfobj.get_baseline_info("aerosol_hist_str", required=True)]
base_hist_str = adfobj.get_baseline_info("aerosol_hist_str")
if base_hist_str is None:
base_hist_str = "cam.h0a"
hist_strs += [base_hist_str]
# End if

# Check to ensure number of case names matches number history file locations.
Expand Down

0 comments on commit 726a4fb

Please sign in to comment.