forked from materialsproject/atomate2
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d1ca84a
commit 88de216
Showing
39 changed files
with
60 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
from atomate2.qchem.drones import QChemDrone | ||
|
||
|
||
def test_structure_optimization(qchem_test_dir): | ||
drone = QChemDrone() | ||
doc = drone.assimilate(qchem_test_dir / "water_single_point" / "outputs") | ||
assert doc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
from pathlib import Path | ||
|
||
import pytest | ||
|
||
from atomate2.qchem.files import copy_qchem_outputs, get_largest_opt_extension | ||
|
||
|
||
@pytest.mark.parametrize( | ||
"files", | ||
[ | ||
("custodian.json.gz","FW.json.gz"), | ||
], | ||
) | ||
def test_copy_qchem_outputs_sp(qchem_test_dir, tmp_dir, files): | ||
path = qchem_test_dir / "water_single_point" / "outputs" | ||
copy_qchem_outputs(src_dir=path, additional_qchem_files=files) | ||
|
||
for file in files: | ||
assert Path(path / file).exists() | ||
|
||
|
||
@pytest.mark.parametrize( | ||
"files", | ||
[ | ||
("custodian.json.gz","FW.json.gz"), | ||
], | ||
) | ||
def test_copy_qchem_outputs_freq(qchem_test_dir, tmp_dir, files): | ||
path = qchem_test_dir / "water_frequency" / "outputs" | ||
copy_qchem_outputs(src_dir=path, additional_qchem_files=files) | ||
|
||
for file in files: | ||
assert Path(path / file).exists() | ||
|
||
|
||
def test_get_largest_opt_extension(qchem_test_dir): | ||
path = qchem_test_dir / "double_opt_test" / "outputs" | ||
extension = get_largest_opt_extension(directory=path) | ||
assert extension == ".opt_2" | ||
|
||
path = qchem_test_dir / "water_single_point" / "static" / "outputs" | ||
extension = get_largest_opt_extension(directory=path) | ||
assert extension == "" |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+281 Bytes
tests/test_data/qchem/double_opt_test/outputs/Reduced_Mg_OTF_2_G2_-15344258.error.gz
Binary file not shown.
Binary file added
BIN
+400 Bytes
tests/test_data/qchem/double_opt_test/outputs/Reduced_Mg_OTF_2_G2_-15344258.out.gz
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.