Skip to content

Commit

Permalink
Merge pull request #35 from jameshalgren/file_fix_001
Browse files Browse the repository at this point in the history
Bugfix for File-Write
  • Loading branch information
sepehrkrz authored Nov 13, 2023
2 parents e297dca + fef35fb commit b59db0c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions nwmurl/urlgennwm.py
Original file line number Diff line number Diff line change
Expand Up @@ -564,7 +564,7 @@ def generate_urls_operational(
if write_to_file == True:
if os.path.exists("filenamelist.txt"):
os.remove("filenamelist.txt")
with open("filenamelist.txt", "wt") as file:
for item in file_list:
file.write(f"{item}\n")
with open("filenamelist.txt", "wt") as file:
for item in file_list:
file.write(f"{item}\n")
return file_list
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"""

# Other information
VERSION = "0.1.7"
VERSION = "0.1.8"
DESCRIPTION = "URL generator tool for National Water Model data"

setup(
Expand Down

0 comments on commit b59db0c

Please sign in to comment.