Skip to content

Commit d08ee4e

Browse files
committed
unintended refactor undoing
1 parent c4bbb43 commit d08ee4e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

map-integration/macrostrat/map_integration/pipeline.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -549,7 +549,7 @@ def upload_file(
549549
] = False,
550550
s3_prefix: Annotated[
551551
str,
552-
Option(help="The filename_prefix to use for the file's S3 key"),
552+
Option(help="The filename to use for the file's S3 key"),
553553
] = "",
554554
s3_bucket: Annotated[
555555
str,
@@ -874,7 +874,7 @@ def ingest_csv(
874874
s3_prefix: Annotated[
875875
str,
876876
Option(
877-
help="The filename_prefix, sans trailing slash, to use for the files' S3 keys"
877+
help="The filename, sans trailing slash, to use for the files' S3 keys"
878878
),
879879
] = None,
880880
tag: Annotated[

map-integration/macrostrat/map_integration/utils/s3_file_management.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ def staging_upload_dir(slug: str, data_path: pathlib.Path, ext: str) -> dict:
123123

124124
return {
125125
"bucket_name": bucket_name,
126-
"filename_prefix": f"{slug}/",
126+
"filename": f"{slug}/",
127127
"endpoint": endpoint,
128128
"destination": f"s3://{bucket_name}/{slug}/",
129129
}
@@ -263,7 +263,7 @@ def staging_download_dir(slug: str, dest_path: pathlib.Path) -> dict:
263263
"""
264264
Download a directory from the staging bucket to a local path.
265265
Args:
266-
slug: Remote key filename_prefix (folder) in the bucket, e.g. "myprefix_region"
266+
slug: Remote key filename (folder) in the bucket, e.g. "myprefix_region"
267267
dest_path: Local directory to download into (created if missing)
268268
Returns:
269269
dict with details about the download source/destination.

0 commit comments

Comments
 (0)