Skip to content

Commit

Permalink
black
Browse files Browse the repository at this point in the history
  • Loading branch information
James Halgren authored and jameshalgren committed May 30, 2023
1 parent e5b414b commit 670e923
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions nwm_filenames/listofnwmfilenamesretro.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ def selectrun(rundict, runinput):

import requests


def generate_url(date, file_type, urlbase_prefix, data_type):
year_txt = f"{date.strftime('%Y')}"
date_txt = f"{date.strftime('%Y%m%d%H')}"
Expand Down Expand Up @@ -107,6 +108,7 @@ def makename(
else:
return url


# setting run_type
def run_type(runinput, varinput, geoinput, default=""):
if varinput == 5: # if forcing
Expand Down Expand Up @@ -260,7 +262,18 @@ def create_archive_file_list(urlbaseinput):
pass


def operational_archive_file_name_creator(dates, runinput, varinput, geoinput, run_name, meminput, urlbaseinput, fcst_cycle, lead_time, r):
def operational_archive_file_name_creator(
dates,
runinput,
varinput,
geoinput,
run_name,
meminput,
urlbaseinput,
fcst_cycle,
lead_time,
r,
):
runsuff = ""
try:
geography = selectgeo(geodict, geoinput)
Expand Down Expand Up @@ -661,4 +674,4 @@ def main():
if len(sys.argv) > 1 and sys.argv[1] == "--test":
test_create_file_list()
else:
main()
main()

0 comments on commit 670e923

Please sign in to comment.