Skip to content

Commit

Permalink
update logic
Browse files Browse the repository at this point in the history
  • Loading branch information
SageGJ committed Aug 15, 2024
1 parent 71283bf commit 3dcd8a7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions schematic/store/synapse.py
Original file line number Diff line number Diff line change
Expand Up @@ -792,8 +792,9 @@ def fill_in_entity_id_filename(
dataset_files=dataset_files, only_new_files=False, manifest=manifest
)

existing_files = manifest["entityId"].isin(all_files["entityId"])
manifest.loc[existing_files, "Filename"] = all_files["Filename"]
if not manifest.empty:
existing_files = manifest["entityId"].isin(all_files["entityId"])
manifest.loc[existing_files, "Filename"] = all_files["Filename"]

# update manifest so that it contains new dataset files
manifest = (
Expand Down

0 comments on commit 3dcd8a7

Please sign in to comment.