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

improving get_version for Molpro and Q-Chem #261

Merged
merged 2 commits into from Aug 18, 2020
Merged

Conversation

loriab
Copy link
Collaborator

@loriab loriab commented Jul 31, 2020

Description

Changelog description

  • at least won't throw xml errors in the presence of an old molpro when probing presence/version
  • modernize Provenance for Q-Chem (have to cheat for qcer tests)
  • for mp2 energies, get Q-Chem passing stdsuite
  • switch to extracting Q-Chem version from output file, not qchem -h since the last isn't available from a source install
  • catch up on isort
  • lower qchem requirements to v5.1 (works at GT). former v5.2 was simply the version at which the harness was developed.

Status

  • Code base linted
  • Ready to go

@lgtm-com
Copy link
Contributor

lgtm-com bot commented Jul 31, 2020

This pull request introduces 1 alert when merging 0003e40 into 7bd2521 - view on LGTM.com

new alerts:

  • 1 for Unused import

@codecov
Copy link

codecov bot commented Aug 1, 2020

Codecov Report

Merging #261 into master will increase coverage by 4.56%.
The diff coverage is 47.16%.

Copy link
Collaborator

@dotsdl dotsdl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good! Looks like a lot of the changes are lints, which isn't a problem. The meat of the changes look good to me!

found = self.found()
if not found:
return safe_version("0.0.0")

self.found(raise_error=True)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps remove this one since we have the above now?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the found()s? second is normal behavior and has the raise_error behavior. first is the crazy escape path for qcer.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But will the second ever have any effect? If qchem isn't found, the first will return the safe_version("0.0.0") call and exit the method. If qchem is found, it will sail through? I might be misunderstanding the subtleties of qchem here...

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, you're right. the return v0.0 was newly needed to appease qcer after I made qchem run for version. but the second with raise_error is the correct harness behavior. proper solution would be for the qcer tests to set an envvar that could be used to narrowly trigger the v0.0 special behavior. I'd like to keep the second found in memory of what we should return to.

I don't fully understand the subtleties of the qchem harness myself. it's one of those programs that settled into an idiosyncratic groove long ago, and it looks like DGAS had to add extra hoops to to stuff it into a harness.

@loriab loriab merged commit 236156f into MolSSI:master Aug 18, 2020
@loriab loriab deleted the qchemver branch August 18, 2020 20:11
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

Successfully merging this pull request may close these issues.

None yet

2 participants