Skip to content

Commit

Permalink
Update creation script
Browse files Browse the repository at this point in the history
  • Loading branch information
samueljackson92 committed Jun 11, 2024
1 parent bfc926c commit a1178ab
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/api/create.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,10 @@ def create_signals(self, data_path: Path):
df["dimensions"] = df["dimensions"].map(lambda x: x.tolist())

df["url"] = (
"s3://mast/level1/" + df["shot_id"].map(str) + ".zarr/" + df["name"]
"s3://mast/level1/shots/"
+ df["shot_id"].map(str)
+ ".zarr/"
+ df["name"]
)

uda_attributes = ["uda_name", "mds_name", "file_name", "format"]
Expand All @@ -207,7 +210,7 @@ def create_sources(self, data_path: Path):
source_metadata = source_metadata.drop_duplicates("uuid")
source_metadata = source_metadata.loc[source_metadata.shot_id <= LAST_MAST_SHOT]
source_metadata["url"] = (
"s3://mast/level1/"
"s3://mast/level1/shots/"
+ source_metadata["shot_id"].map(str)
+ ".zarr/"
+ source_metadata["name"]
Expand Down

0 comments on commit a1178ab

Please sign in to comment.