Added Preflights

This commit is contained in:
=
2025-08-26 17:12:06 -04:00
committed by brotoskyj
parent 337ff99915
commit 4615bb4c56
2 changed files with 11 additions and 3 deletions
+9
View File
@@ -113,6 +113,15 @@ def mask_from_csv(df, csv_path, filepath_col):
return masked_df, remainder
def filter_and_drop(approved, eligiblepaths, min_hashes):
"""
Filters eligiblepaths to rows where all hashes are in approved,
then drops rows with fewer than min_hashes hashes.
"""
approved_hashes = set(approved['sha256'])
return path_eligible, path_ineligible
def filter_and_drop(approved, eligiblepaths, min_hashes):
"""
Filters eligiblepaths to rows where all hashes are in approved,