Skip to content

Commit

Permalink
cover edge case
Browse files Browse the repository at this point in the history
  • Loading branch information
GiaJordan committed Jul 23, 2024
1 parent b5f5dfb commit 16231c6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions schematic/models/validate_attribute.py
Original file line number Diff line number Diff line change
Expand Up @@ -2048,6 +2048,9 @@ def filename_validation(
joined_df = manifest.merge(
fileview, how="outer", left_on="Filename", right_on="path"
)
# cover case where there are more files in dataset than in manifest
joined_df = joined_df.loc[~joined_df["Component"].isna()].reset_index(drop=True)

entity_id_match = joined_df["id"] == joined_df["entityId"]

manifest_with_errors = deepcopy(manifest)
Expand Down

0 comments on commit 16231c6

Please sign in to comment.