Skip to content

Commit

Permalink
Update configure_datastream.py
Browse files Browse the repository at this point in the history
Remove $
  • Loading branch information
JordanLaserGit authored Oct 18, 2024
1 parent fb4e639 commit d7df2a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python_tools/src/python_tools/configure_datastream.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ def create_conf_fp(args):
output_file_type = ["netcdf"]
if len(args.s3_bucket) > 0:
if "DAILY" in args.start_date:
args.s3_prefix = re.sub(r"\$DAILY",datetime.now(tz.timezone('US/Eastern')).strftime('%Y%m%d'),args.s3_prefix)
args.s3_prefix = re.sub(r"\DAILY",datetime.now(tz.timezone('US/Eastern')).strftime('%Y%m%d'),args.s3_prefix)
output_path = f"s3://{args.s3_bucket}/{args.s3_prefix}"
elif len(args.docker_mount) > 0:
gpkg_file = [f"{args.docker_mount}/datastream-resources/config/{geo_base}"]
Expand Down Expand Up @@ -297,4 +297,4 @@ def create_confs(args):
if args.hydrofabric_version == "": args.hydrofabric_version="v2.1.1"
if args.nprocs == "": args.nprocs=os.cpu_count()

create_confs(args)
create_confs(args)

0 comments on commit d7df2a9

Please sign in to comment.