Skip to content

Commit

Permalink
FIX DEV - check_zooprocess_check impl
Browse files Browse the repository at this point in the history
  • Loading branch information
juliecoust committed Oct 25, 2023
1 parent 3cd050d commit e661603
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions libQC_zooscan_implementation.py
Original file line number Diff line number Diff line change
Expand Up @@ -338,8 +338,7 @@ def check_zooprocess_check(_id, _mode, local_data):
checked_files = local_data.get("checked_files")

# Replace by process_checked OK or associated error code
result.check_zooprocess = result.check_zooprocess.map(lambda x: labels.sucess["process.process_checked.ok"] if any(x in checked_file for checked_file in checked_files)
else labels.errors["process.process_checked.not_checked"])
result["check_zooprocess"] = result["scan_id"].apply(lambda x: labels.sucess["process.process_checked.ok"] if any(x in checked_file for checked_file in checked_files) else labels.errors["process.process_checked.not_checked"])

# Keep only one line by couples : id / check zooprocess
result = result.drop_duplicates()
Expand Down

0 comments on commit e661603

Please sign in to comment.