From ba26f99cdf8e83fffc77c6c40e57d612933c054f Mon Sep 17 00:00:00 2001 From: Jason Munro Date: Sat, 25 Mar 2023 16:38:33 -0700 Subject: [PATCH] Fix phonon prechunking (#681) --- emmet-builders/emmet/builders/abinit/phonon.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/emmet-builders/emmet/builders/abinit/phonon.py b/emmet-builders/emmet/builders/abinit/phonon.py index f51f4038a6..e77b931b38 100644 --- a/emmet-builders/emmet/builders/abinit/phonon.py +++ b/emmet-builders/emmet/builders/abinit/phonon.py @@ -135,7 +135,7 @@ def prechunk(self, number_splits: int): # pragma: no cover for mpid_chunk in grouper(mats, N): - yield {"query": {self.phonon.key: {"$in": list(mpid_chunk)}}} + yield {"query": {self.phonon_materials.key: {"$in": list(mpid_chunk)}}} def get_items(self) -> Iterator[Dict]: """