Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify codes #928

Merged
merged 23 commits into from
Apr 28, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update savg_fourier.py
  • Loading branch information
lee1043 committed Apr 28, 2023
commit 075f230133ef8e3af3ad5bd0bfe0de19fcfc2a70
3 changes: 1 addition & 2 deletions pcmdi_metrics/diurnal/scripts/savg_fourier.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,8 +225,7 @@ def spacevavg(tvarb1, tvarb2, sftlf, model):
return outD

print("Preparing to write output to JSON file ...")
if not os.path.exists(args.results_dir):
os.makedirs(args.results_dir)
os.makedirs(args.results_dir, exist_ok=True)
jsonFile = populateStringConstructor(args.outnamejson, args)
jsonFile.month = monthname

Expand Down