Skip to content

Commit

Permalink
change default run_id format to be compatible with windows
Browse files Browse the repository at this point in the history
  • Loading branch information
jcblemai committed Oct 14, 2023
1 parent e79b4ed commit f9299a6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion flepimop/R_packages/flepicommon/R/file_paths.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
run_id <- function(){
rc <- "test"
try({
rc <- format(lubridate::now(),"%Y.%m.%d.%H:%M:%S.%Z")
rc <- format(lubridate::now(),"%Y%m%d_%H%M%S%Z")
}, silent=TRUE)
return(rc)
}
Expand Down
3 changes: 1 addition & 2 deletions flepimop/gempyor_pkg/src/gempyor/file_paths.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ def create_file_name_without_extension(run_id, prefix, index, ftype, create_dire


def run_id():
return datetime.datetime.strftime(datetime.datetime.now(), "%Y.%m.%d.%H:%M:%S.%Z")

return datetime.datetime.strftime(datetime.datetime.now(), "%Y%m%d_%H%M%S%Z")

def create_dir_name(run_id, prefix, ftype):
return os.path.dirname(create_file_name_without_extension(run_id, prefix, 1, ftype, create_directory=False))

0 comments on commit f9299a6

Please sign in to comment.