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 fourierDiurnalGridpoints.py
  • Loading branch information
lee1043 committed Apr 28, 2023
commit 5b0960a57c1c8b0a3322c6effc7756d8d05bd1df
3 changes: 1 addition & 2 deletions pcmdi_metrics/diurnal/scripts/fourierDiurnalGridpoints.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,7 @@ def main():
ascFile.month = monthname
ascname = os.path.join(os.path.abspath(args.results_dir), ascFile())

if not os.path.exists(os.path.dirname(ascname)):
os.makedirs(os.path.dirname(ascname))
os.makedirs(os.path.dirname(ascname), exist_ok=True)
fasc = open(ascname, "w")

gridptlats = [float(x) for x in args.lats]
Expand Down