Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CI] Unit test for io.qchem.outputs is failing #4006

Open
DanielYang59 opened this issue Aug 20, 2024 · 0 comments
Open

[CI] Unit test for io.qchem.outputs is failing #4006

DanielYang59 opened this issue Aug 20, 2024 · 0 comments

Comments

@DanielYang59
Copy link
Contributor

DanielYang59 commented Aug 20, 2024

Singled out from #3985 for visibility.

The following unit test for io.qchem.outputs is failing, need help:

@pytest.mark.skip # self._test_property(key, single_outs, multi_outs) fails with
# ValueError: The truth value of an array with more than one element is ambiguous
@pytest.mark.skipif(openbabel is None, reason="OpenBabel not installed.")
def test_all(self):
single_outs = {file: QCOutput(f"{TEST_FILES_DIR}/molecules/{file}").data for file in single_job_out_names}
multi_outs = {
file: QCOutput.multiple_outputs_from_file(f"{TEST_FILES_DIR}/molecules/{file}", keep_sub_files=False)
for file in multi_job_out_names
}
for key in property_list:
self._test_property(key, single_outs, multi_outs)

It appears the dimension from out_data and SINGLE_JOB_DICT mismatch, with the former having one extra dimension for some reason (i.e. [[a, b, c], ] vs [a, b, c]).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant