Added Preflights
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user