File tree Expand file tree Collapse file tree
mp_api/client/routes/materials Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55from emmet .core .settings import EmmetSettings
66from emmet .core .symmetry import CrystalSystem
77from emmet .core .vasp .calc_types import RunType
8- from emmet .core .vasp .material import MaterialsDoc , BlessedCalcs
8+ from emmet .core .vasp .material import BlessedCalcs , MaterialsDoc
99from pymatgen .core .structure import Structure
1010
1111from mp_api .client .core import BaseRester , MPRestError
4242
4343if TYPE_CHECKING :
4444 from typing import Any
45+
4546 from pymatgen .entries .computed_entries import ComputedStructureEntry
4647
4748_EMMET_SETTINGS = EmmetSettings () # type: ignore
@@ -376,16 +377,16 @@ def get_blessed_entries(
376377 parallel_param = "material_ids" if material_ids else None ,
377378 chunk_size = chunk_size ,
378379 num_chunks = num_chunks ,
379- )
380-
380+ )
381+
381382 return [
382383 {
383384 "material_id" : doc ["material_id" ],
384385 "blessed_entry" : (
385386 next (
386- getattr (doc ["entries" ],k , None )
387+ getattr (doc ["entries" ], k , None )
387388 for k in BlessedCalcs .model_fields
388- if getattr (doc ["entries" ],k , None )
389+ if getattr (doc ["entries" ], k , None )
389390 )
390391 if self .use_document_model
391392 else next (
You can’t perform that action at this time.
0 commit comments