diff --git a/arrakis/makecat.py b/arrakis/makecat.py index 55d69b12..e694fe7a 100644 --- a/arrakis/makecat.py +++ b/arrakis/makecat.py @@ -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}}}, ] }