-
Notifications
You must be signed in to change notification settings - Fork 12
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
Patrick Li
committed
May 20, 2024
1 parent
23101a0
commit 31cb631
Showing
2 changed files
with
32 additions
and
25 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 |
---|---|---|
@@ -1,36 +1,41 @@ | ||
#--------------------------------------------------------------------------------------------------# | ||
###################################################################################################### | ||
# test example 4: Naphthalene Radical in Chloroform: box gen: test pdb, prmtop | ||
# author: Patrick Li (2022-10-18) | ||
# path: autosolvate/tests/test_case4.py | ||
#--------------------------------------------------------------------------------------------------# | ||
import os | ||
import pytest | ||
import numpy as np | ||
###################################################################################################### | ||
# @Date : May 9th 2024 | ||
# @Author : Patrick Li | ||
# @Note : Disabled because this test case requires the gaussian to be installed | ||
###################################################################################################### | ||
|
||
import autosolvate | ||
from . import helper_functions as hp | ||
# import os | ||
# import pytest | ||
# import numpy as np | ||
|
||
# import autosolvate | ||
# from . import helper_functions as hp | ||
|
||
def test_example_4(tmpdir): | ||
testName = "test_example_4" | ||
|
||
# def test_example_4(tmpdir): | ||
# testName = "test_example_4" | ||
|
||
autosolvate.startboxgen([ | ||
"-m", hp.get_input_dir("naphthalene_radical.xyz"), | ||
"-s", "chloroform", | ||
"-c", "1", | ||
"-u", "2", | ||
"-g", "resp", | ||
"-o", "nap_radical_chcl3", | ||
]) | ||
# autosolvate.startboxgen([ | ||
# "-m", hp.get_input_dir("naphthalene_radical.xyz"), | ||
# "-s", "chloroform", | ||
# "-c", "1", | ||
# "-u", "2", | ||
# "-g", "resp", | ||
# "-o", "nap_radical_chcl3", | ||
# ]) | ||
|
||
out = "nap_radical_chcl3" | ||
ref = hp.get_reference_dir("nap_radical_chcl3") | ||
# out = "nap_radical_chcl3" | ||
# ref = hp.get_reference_dir("nap_radical_chcl3") | ||
|
||
|
||
for suffix in [".pdb", ".prmtop", ".inpcrd"]: | ||
assert os.path.exists(out + suffix) | ||
# for suffix in [".pdb", ".prmtop", ".inpcrd"]: | ||
# assert os.path.exists(out + suffix) | ||
|
||
assert hp.compare_pdb(out, ref) | ||
assert hp.compare_inpcrd_prmtop(out, ref) | ||
# assert hp.compare_pdb(out, ref) | ||
# assert hp.compare_inpcrd_prmtop(out, ref) | ||
|
||
|