We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 56ac737 commit af47dc5Copy full SHA for af47dc5
babs/utils.py
@@ -648,10 +648,12 @@ def update_results_status(
648
& ~updated_results_df['state'].isin(['PD', 'R'])
649
)
650
651
- # Drop the completion columns
652
- updated_results_df = updated_results_df.drop(
653
- columns=['job_id_completion', 'task_id_completion']
654
- )
+ # Drop all completion columns (job_id, task_id, and any other overlapping
+ # columns like ses_id_completion when use_sesid was False in a prior run)
+ completion_suffix_columns = [
+ col for col in updated_results_df.columns if col.endswith('_completion')
655
+ ]
656
+ updated_results_df = updated_results_df.drop(columns=completion_suffix_columns)
657
658
return updated_results_df
659
0 commit comments