Skip to content

Commit

Permalink
ran black locally
Browse files Browse the repository at this point in the history
  • Loading branch information
TeaganKing committed May 1, 2024
1 parent ebf37a5 commit b0126cf
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions cime_config/buildnml
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,9 @@ def buildnml(case, caseroot, compname):
clm_phys = case.get_value("CLM_PHYSICS_VERSION")

config_cache_text = _config_cache_template.format(clm_phys=clm_phys)
config_cache_path = os.path.join(caseroot, "Buildconf", compname + "conf", "config_cache.xml")
config_cache_path = os.path.join(
caseroot, "Buildconf", compname + "conf", "config_cache.xml"
)
with open(config_cache_path, "w") as config_cache_file:
config_cache_file.write(config_cache_text)

Expand Down Expand Up @@ -266,7 +268,9 @@ def buildnml(case, caseroot, compname):
lndfrac_file = os.path.join(lnd_domain_path, lnd_domain_file)
lndfrac_setting = "-lnd_frac " + lndfrac_file

config_cache_file = os.path.join(caseroot, "Buildconf", compname + "conf", "config_cache.xml")
config_cache_file = os.path.join(
caseroot, "Buildconf", compname + "conf", "config_cache.xml"
)

# -----------------------------------------------------
# Clear out old data
Expand Down Expand Up @@ -329,7 +333,9 @@ def buildnml(case, caseroot, compname):
break

if not os.path.exists(os.path.join(rundir, clm_startfile)):
logger.warning("WARNING: Could NOT find a start file to use using" + clm_startfile)
logger.warning(
"WARNING: Could NOT find a start file to use using" + clm_startfile
)
clm_icfile = "%s = '%s'" % (startfile_type, clm_startfile)
else:
clm_icfile = ""
Expand All @@ -340,7 +346,9 @@ def buildnml(case, caseroot, compname):
user_nl_file = os.path.join(caseroot, "user_nl_clm" + inst_string)
namelist_infile = os.path.join(ctsmconf, "namelist")

create_namelist_infile(case, user_nl_file, namelist_infile, "\n".join(infile_lines))
create_namelist_infile(
case, user_nl_file, namelist_infile, "\n".join(infile_lines)
)

cmd = os.path.join(lnd_root, "bld", "build-namelist")

Expand Down

0 comments on commit b0126cf

Please sign in to comment.