Skip to content

Commit

Permalink
Use elemMatch
Browse files Browse the repository at this point in the history
  • Loading branch information
AlecThomson committed May 20, 2024
1 parent 211695d commit 2e05f50
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion arrakis/makecat.py
Original file line number Diff line number Diff line change
Expand Up @@ -887,7 +887,9 @@ def main(
query = {
"$and": [
{"Source_ID": {"$in": all_island_ids}},
{"rm_outputs_1d.field": save_name, "rm_outputs_1d.rmsynth1d": True},
{"rm_outputs_1d": {"$elemMatch": {"field": save_name}}},
{"rm_outputs_1d": {"$elemMatch": {"rmsynth1d": True}}},
{"rm_outputs_1d": {"$elemMatch": {"rmclean1d": True}}},
]
}

Expand Down

0 comments on commit 2e05f50

Please sign in to comment.