Skip to content

Commit

Permalink
fixed empty string print
Browse files Browse the repository at this point in the history
  • Loading branch information
aaschwanden committed Nov 26, 2024
1 parent 0a092ce commit 20843ba
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion calibration/calibrate.py
Original file line number Diff line number Diff line change
Expand Up @@ -728,7 +728,7 @@ def create_offset_file(file_name: str, delta_T: float = 0.0, frac_P: float = 1.0
print("\nChecking input files")
print("------------------------------------------------------------")
for key, m_f in all_params_dict.items():
if key.split(".")[-1] == "file":
if key.split(".")[-1] == "file" and m_f is not None:
m_f_abs = m_f.replace("$data_dir", options.data_dir)
print(f" - {m_f_abs}: {os.path.isfile(m_f_abs)}")
print("------------------------------------------------------------\n")
Expand Down
2 changes: 1 addition & 1 deletion hindcasts/hindcast.py
Original file line number Diff line number Diff line change
Expand Up @@ -713,7 +713,7 @@ def create_offset_file(file_name: str, delta_T: float = 0.0, frac_P: float = 1.0
print("\nChecking input files")
print("------------------------------------------------------------")
for key, m_f in all_params_dict.items():
if key.split(".")[-1] == "file":
if key.split(".")[-1] == "file" and m_f is not None:
m_f_abs = m_f.replace("$data_dir", options.data_dir)
print(f" - {m_f_abs}: {os.path.isfile(m_f_abs)}")
print("------------------------------------------------------------\n")
Expand Down

0 comments on commit 20843ba

Please sign in to comment.