forked from ORNL/HydraGNN
-
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.
* force tests, which required model arg, and some typo fixing in Lennard Jones * Add PNAPlus since it uses positions as well * formatting
- Loading branch information
1 parent
886007e
commit db705ca
Showing
4 changed files
with
39 additions
and
3 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
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,27 @@ | ||
############################################################################## | ||
# Copyright (c) 2024, Oak Ridge National Laboratory # | ||
# All rights reserved. # | ||
# # | ||
# This file is part of HydraGNN and is distributed under a BSD 3-clause # | ||
# license. For the licensing terms see the LICENSE file in the top-level # | ||
# directory. # | ||
# # | ||
# SPDX-License-Identifier: BSD-3-Clause # | ||
############################################################################## | ||
|
||
import os | ||
import pytest | ||
|
||
import subprocess | ||
|
||
|
||
@pytest.mark.parametrize("example", ["LennardJones"]) | ||
@pytest.mark.parametrize("model_type", ["SchNet", "EGNN", "DimeNet", "PNAPlus"]) | ||
@pytest.mark.mpi_skip() | ||
def pytest_examples(example, model_type): | ||
path = os.path.join(os.path.dirname(__file__), "..", "examples", example) | ||
file_path = os.path.join(path, example + ".py") # Assuming different model scripts | ||
return_code = subprocess.call(["python", file_path, "--model_type", model_type]) | ||
|
||
# Check the file ran without error. | ||
assert return_code == 0 |