Skip to content

Commit

Permalink
output file name formatting problem with windows
Browse files Browse the repository at this point in the history
  • Loading branch information
jmccreight committed Oct 25, 2023
1 parent ef355fe commit 0560155
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pywatershed/base/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,7 @@ def __init__(
if write_control or isinstance(write_control, (pl.Path, str)):
if isinstance(write_control, bool):
write_control = pl.Path(".")
format_fn = "%Y-%m-%dT%H:%M:%S.model_control.yaml"
format_fn = "%Y-%m-%dT%H.%M.%S.model_control.yaml"
yaml_fn = write_control / datetime.now().strftime(format_fn)
if not yaml_fn.parent.exists():
yaml_fn.parent.mkdir(parents=True)
Expand Down

0 comments on commit 0560155

Please sign in to comment.