File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 5
5
import logging
6
6
import warnings
7
7
from dataclasses import dataclass , field
8
- from typing import TYPE_CHECKING
8
+ from typing import TYPE_CHECKING , Union
9
9
10
10
from ase .io import Trajectory as AseTrajectory
11
11
from ase .units import GPa as _GPa_to_eV_per_A3
Original file line number Diff line number Diff line change 2
2
3
3
from __future__ import annotations
4
4
5
- from typing import Any , Optional
5
+ from typing import Any , Optional , Union
6
6
7
7
from emmet .core .utils import ValueEnum
8
8
from emmet .core .vasp .calculation import StoreTrajectoryOption
@@ -249,7 +249,7 @@ def from_ase_task_doc(
249
249
meta_class = ForceFieldStructureTaskDocument
250
250
k = "structure"
251
251
if relax_cell := getattr (ase_task_doc , "relax_cell" , None ):
252
- kwargs .update ({"relax_cell" : relax_cell })
252
+ task_document_kwargs .update ({"relax_cell" : relax_cell })
253
253
task_document_kwargs .update (structure = ase_task_doc .mol_or_struct )
254
254
elif isinstance (ase_task_doc .mol_or_struct , Molecule ):
255
255
meta_class = ForceFieldMoleculeTaskDocument
You can’t perform that action at this time.
0 commit comments