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
Conversation
This pull request introduces 1 alert when merging 0003e40 into 7bd2521 - view on LGTM.com new alerts:
|
There was a problem hiding this 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) |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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...
There was a problem hiding this comment.
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.
Description
Changelog description
qchem -h
since the last isn't available from a source installisort
Status