Skip to content

Commit aaf7ffc

Browse files
fix structure_entry property
1 parent b7d5c54 commit aaf7ffc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

emmet-core/emmet/core/tasks.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -804,7 +804,9 @@ def structure_entry(self) -> ComputedStructureEntry:
804804
ComputedStructureEntry
805805
The TaskDoc.entry with corresponding TaskDoc.structure added.
806806
"""
807-
ce = self.entry.get_computed_entry()
807+
ce = self.entry
808+
if not getattr(self, "_use_pymatgen_rep", False):
809+
ce = ce.get_computed_entry()
808810
return ComputedStructureEntry(
809811
structure=self.structure,
810812
energy=ce.energy,

0 commit comments

Comments
 (0)