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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Prev Previous commit
Next Next commit
Update computeStdOfDailyMeans.py
  • Loading branch information
lee1043 committed Apr 28, 2023
commit 81eb12cc59d873ec2c581601c1ad08a767fed85a
3 changes: 1 addition & 2 deletions pcmdi_metrics/diurnal/scripts/computeStdOfDailyMeans.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,7 @@ def compute(params):
)
except Exception as err:
print("Failed for model: %s with error: %s" % (dataname, err))
if not os.path.exists(args.results_dir):
os.makedirs(args.results_dir)
os.makedirs(args.results_dir, exist_ok=True)
g = cdms2.open(os.path.join(args.results_dir, stdoutfile), "w")
g.write(stdvalues)
g.close()
Expand Down