CCLib harness integration for qchem and orca - #515
Draft
Awallace3 wants to merge 48 commits into
Draft
Conversation
| if changes.pop("permissions", False): | ||
| os.chmod(environment["QC"], 0o300) | ||
| os.chmod(environment["QCAUX"], 0o300) | ||
| os.chmod(environment["QCPROG"], 0o644) |
| os.chmod(environment["QC"], 0o300) | ||
| os.chmod(environment["QCAUX"], 0o300) | ||
| os.chmod(environment["QCPROG"], 0o644) | ||
| os.chmod(executable, 0o644) |
| if parser_input is not None: | ||
| try: | ||
| parser_input.close() | ||
| except Exception: |
| if temporary_path is not None: | ||
| try: | ||
| os.unlink(temporary_path) | ||
| except FileNotFoundError: |
|
|
||
| import pytest | ||
|
|
||
| import qcengine as qcng |
| import pytest | ||
|
|
||
| import qcengine as qcng | ||
| import qcengine.programs.cclib_programs.base as cclib_base |
|
|
||
| from qcengine.config import TaskConfig | ||
| from qcengine.exceptions import InputError, ResourceError, UnknownError | ||
| from qcengine.programs.cclib_programs.base import CCLibHarness |
|
|
||
| def test_missing_executable_is_a_resource_error(monkeypatch): | ||
| harness = ORCACCLibHarness() | ||
| monkeypatch.setattr(cclib_base, "_load_cclib_api", lambda: object()) |
1 task
Codecov Report❌ Patch coverage is 🚀 New features to boost your workflow:
|
1 task
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
cclib can be used to add "second class" harnesses more easily by leveraging their parsers of programs. This PR starts laying out how cclib can be used in a harness for orca and extended qchem support.
Changelog description
Adds cclib_programs for a base cclib harness along with orca/qchem
Status