Skip to content

Commit

Permalink
Add filter
Browse files Browse the repository at this point in the history
  • Loading branch information
AlecThomson committed May 18, 2024
1 parent a658447 commit c6031c8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion arrakis/rmclean_oncuts.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,8 @@ def rmclean1d(
"rm_outputs_1d.$.rmclean_summary": outdict,
}
newvalues = {"$set": to_update}
return pymongo.UpdateOne(myquery, newvalues)
filter_condition = [{"elem.field": save_name}]
return pymongo.UpdateOne(myquery, newvalues, array_filters=filter_condition)


@task(name="3D RM-CLEAN")
Expand Down

0 comments on commit c6031c8

Please sign in to comment.