Skip to content

Commit

Permalink
ENH: Retain thumbnail URL column
Browse files Browse the repository at this point in the history
  • Loading branch information
scottclowe committed Apr 3, 2023
1 parent 9605e98 commit 26ba1a6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion squidle_downloader/build_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,9 @@ def build_dataset(

# Drop superfluous columns by selecting only the columns we care about
# and rename columns as needed for merger
df_media = df_media[["id", "key", "path_best", "timestamp_start", "deployment_id"]]
df_media = df_media[
["id", "key", "path_best", "path_best_thm", "timestamp_start", "deployment_id"]
]

if "media.id" not in df_pose.columns:
# soi subdomain
Expand Down Expand Up @@ -126,6 +128,7 @@ def build_dataset(
df.rename(
columns={
"path_best": "url",
"path_best_thm": "url_thumbnail",
"timestamp_start": "timestamp",
"alt": "altitude",
"dep": "depth",
Expand Down

0 comments on commit 26ba1a6

Please sign in to comment.