23
23
NequipRelaxMaker ,
24
24
NequipStaticMaker ,
25
25
)
26
- from atomate2 .forcefields .schemas import ForceFieldTaskDocument
26
+ from atomate2 .forcefields .schemas import ForceFieldStructureTaskDocument
27
27
28
28
29
29
def test_maker_initialization ():
@@ -52,7 +52,7 @@ def test_chgnet_static_maker(si_structure):
52
52
53
53
# validate job outputs
54
54
output1 = responses [job .uuid ][1 ].output
55
- assert isinstance (output1 , ForceFieldTaskDocument )
55
+ assert isinstance (output1 , ForceFieldStructureTaskDocument )
56
56
assert output1 .output .energy == approx (- 10.6275062 , rel = 1e-4 )
57
57
assert output1 .output .ionic_steps [- 1 ].magmoms is None
58
58
assert output1 .output .n_steps == 1
@@ -113,7 +113,7 @@ def test_chgnet_relax_maker(si_structure: Structure, relax_cell: bool):
113
113
114
114
# validate job outputs
115
115
output1 = responses [job .uuid ][1 ].output
116
- assert isinstance (output1 , ForceFieldTaskDocument )
116
+ assert isinstance (output1 , ForceFieldStructureTaskDocument )
117
117
if relax_cell :
118
118
assert not output1 .is_force_converged
119
119
assert output1 .output .n_steps == max_step + 2
@@ -145,7 +145,7 @@ def test_m3gnet_static_maker(si_structure):
145
145
146
146
# validate job outputs
147
147
output1 = responses [job .uuid ][1 ].output
148
- assert isinstance (output1 , ForceFieldTaskDocument )
148
+ assert isinstance (output1 , ForceFieldStructureTaskDocument )
149
149
assert output1 .output .energy == approx (- 10.8 , abs = 0.2 )
150
150
assert output1 .output .n_steps == 1
151
151
@@ -172,7 +172,7 @@ def test_m3gnet_relax_maker(si_structure):
172
172
173
173
# validate job outputs
174
174
output1 = responses [job .uuid ][1 ].output
175
- assert isinstance (output1 , ForceFieldTaskDocument )
175
+ assert isinstance (output1 , ForceFieldStructureTaskDocument )
176
176
assert output1 .is_force_converged
177
177
assert output1 .output .energy == approx (- 10.8 , abs = 0.2 )
178
178
assert output1 .output .n_steps == 24
@@ -206,7 +206,7 @@ def test_mace_static_maker(si_structure: Structure, test_dir: Path, model):
206
206
207
207
# validation the outputs of the job
208
208
output1 = responses [job .uuid ][1 ].output
209
- assert isinstance (output1 , ForceFieldTaskDocument )
209
+ assert isinstance (output1 , ForceFieldStructureTaskDocument )
210
210
assert output1 .output .energy == approx (- 0.068231 , rel = 1e-4 )
211
211
assert output1 .output .n_steps == 1
212
212
assert output1 .forcefield_version == get_imported_version ("mace-torch" )
@@ -292,7 +292,7 @@ def test_mace_relax_maker(
292
292
# validating the outputs of the job
293
293
output1 = responses [job .uuid ][1 ].output
294
294
assert output1 .is_force_converged
295
- assert isinstance (output1 , ForceFieldTaskDocument )
295
+ assert isinstance (output1 , ForceFieldStructureTaskDocument )
296
296
297
297
si_atoms = si_structure .to_ase_atoms ()
298
298
symmetry_ops_init = check_symmetry (si_atoms , symprec = 1.0e-3 )
@@ -359,7 +359,7 @@ def test_gap_static_maker(si_structure: Structure, test_dir):
359
359
360
360
# validation the outputs of the job
361
361
output1 = responses [job .uuid ][1 ].output
362
- assert isinstance (output1 , ForceFieldTaskDocument )
362
+ assert isinstance (output1 , ForceFieldStructureTaskDocument )
363
363
assert output1 .output .energy == approx (- 10.8523 , rel = 1e-4 )
364
364
assert output1 .output .n_steps == 1
365
365
assert output1 .forcefield_version == get_imported_version ("quippy-ase" )
@@ -393,7 +393,7 @@ def test_gap_relax_maker(si_structure: Structure, test_dir: Path, relax_cell: bo
393
393
394
394
# validating the outputs of the job
395
395
output1 = responses [job .uuid ][1 ].output
396
- assert isinstance (output1 , ForceFieldTaskDocument )
396
+ assert isinstance (output1 , ForceFieldStructureTaskDocument )
397
397
if relax_cell :
398
398
assert not output1 .is_force_converged
399
399
assert output1 .output .energy == approx (- 13.08492 , rel = 1e-2 )
@@ -427,7 +427,7 @@ def test_nep_static_maker(al2_au_structure: Structure, test_dir: Path):
427
427
428
428
# validation the outputs of the job
429
429
output1 = responses [job .uuid ][1 ].output
430
- assert isinstance (output1 , ForceFieldTaskDocument )
430
+ assert isinstance (output1 , ForceFieldStructureTaskDocument )
431
431
assert output1 .output .energy == approx (- 47.65972 , rel = 1e-4 )
432
432
assert output1 .output .n_steps == 1
433
433
@@ -469,7 +469,7 @@ def test_nep_relax_maker(
469
469
470
470
# validate the outputs of the job
471
471
output1 = responses [job .uuid ][1 ].output
472
- assert isinstance (output1 , ForceFieldTaskDocument )
472
+ assert isinstance (output1 , ForceFieldStructureTaskDocument )
473
473
if relax_cell :
474
474
assert output1 .output .energy == approx (- 47.6727 , rel = 1e-3 )
475
475
assert output1 .output .n_steps == 3
@@ -504,7 +504,7 @@ def test_nequip_static_maker(sr_ti_o3_structure: Structure, test_dir: Path):
504
504
505
505
# validation the outputs of the job
506
506
output1 = responses [job .uuid ][1 ].output
507
- assert isinstance (output1 , ForceFieldTaskDocument )
507
+ assert isinstance (output1 , ForceFieldStructureTaskDocument )
508
508
assert output1 .output .energy == approx (- 44.40017 , rel = 1e-4 )
509
509
assert output1 .output .n_steps == 1
510
510
assert output1 .forcefield_version == get_imported_version ("nequip" )
@@ -543,7 +543,7 @@ def test_nequip_relax_maker(
543
543
544
544
# validation the outputs of the job
545
545
output1 = responses [job .uuid ][1 ].output
546
- assert isinstance (output1 , ForceFieldTaskDocument )
546
+ assert isinstance (output1 , ForceFieldStructureTaskDocument )
547
547
if relax_cell :
548
548
assert output1 .output .energy == approx (- 44.407 , rel = 1e-3 )
549
549
assert output1 .output .n_steps == 5
0 commit comments