File tree 2 files changed +7
-7
lines changed
2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 27
27
from pathlib import Path
28
28
29
29
from ase .calculators .calculator import Calculator
30
- from pymatgen .core .structure import Structure
30
+ from pymatgen .core .structure import Molecule , Structure
31
31
32
32
logger = logging .getLogger (__name__ )
33
33
@@ -149,15 +149,15 @@ def __post_init__(self) -> None:
149
149
150
150
@forcefield_job
151
151
def make (
152
- self , structure : Structure , prev_dir : str | Path | None = None
152
+ self , structure : Molecule | Structure , prev_dir : str | Path | None = None
153
153
) -> ForceFieldStructureTaskDocument | ForceFieldMoleculeTaskDocument :
154
154
"""
155
155
Perform a relaxation of a structure using a force field.
156
156
157
157
Parameters
158
158
----------
159
- structure: .Structure
160
- pymatgen structure.
159
+ structure: .Structure or Molecule
160
+ pymatgen structure or molecule .
161
161
prev_dir : str or Path or None
162
162
A previous calculation directory to copy output files from. Unused, just
163
163
added to match the method signature of other makers.
Original file line number Diff line number Diff line change 26
26
from pathlib import Path
27
27
28
28
from ase .calculators .calculator import Calculator
29
- from pymatgen .core .structure import Structure
29
+ from pymatgen .core .structure import Molecule , Structure
30
30
31
31
32
32
@dataclass
@@ -133,15 +133,15 @@ def __post_init__(self) -> None:
133
133
)
134
134
def make (
135
135
self ,
136
- structure : Structure ,
136
+ structure : Molecule | Structure ,
137
137
prev_dir : str | Path | None = None ,
138
138
) -> ForceFieldStructureTaskDocument | ForceFieldMoleculeTaskDocument :
139
139
"""
140
140
Perform MD on a structure using forcefields and jobflow.
141
141
142
142
Parameters
143
143
----------
144
- structure: .Structure
144
+ structure: .Structure or Molecule
145
145
pymatgen structure.
146
146
prev_dir : str or Path or None
147
147
A previous calculation directory to copy output files from. Unused, just
You can’t perform that action at this time.
0 commit comments