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

Nexus: fix convert4qmc hdf5 issue #4243

Merged
merged 4 commits into from
Sep 20, 2022
Merged

Conversation

jtkrogel
Copy link
Contributor

Proposed changes

Fix an issue with expected filenames. convert4qmc no longer produces an hdf5 file when given one from PySCF. This leads to incorrect paths being provided to QMCPACK for the orbitals. Fix this by inserting a symlink in place of the file convert4qmc used to generate.

What type(s) of changes does this code introduce?

  • Bugfix

Does this introduce a breaking change?

  • No

What systems has this change been tested on?

Laptop

Checklist

  • Yes. This PR is up to date with current the current state of 'develop'

Copy link
Contributor

@prckent prckent left a comment

Choose a reason for hiding this comment

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

Can you please put a comment about why this is done?

@jtkrogel
Copy link
Contributor Author

Done.

prckent
prckent previously approved these changes Sep 19, 2022
Copy link
Contributor

@prckent prckent left a comment

Choose a reason for hiding this comment

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

LGTM

@markdewing
Copy link
Contributor

Where does .orbs.h5 get used? Is it possible to propagate the name of the h5 file where it is needed, rather than make symbolic link?

@markdewing
Copy link
Contributor

It looks like there are cases in convert4qmc that can still produce an .orbs.h5 file (-dirac and -hdf5 flags). Will cause this code to try make symlink to the same file? (It'll probably issue a failure message for ln, but still continue.)

@jtkrogel
Copy link
Contributor Author

Yes, it would try and fail to make a symlink in those cases but proceed fine anyway. I can put in a file existence check before proceeding with the attempted symlink creation.

@jtkrogel
Copy link
Contributor Author

More safety checks added. Now the symlink will only be made if an h5 file has been provided and one has not been created by convert4qmc.

@prckent
Copy link
Contributor

prckent commented Sep 20, 2022

Test this please

@prckent prckent merged commit 500dcc3 into QMCPACK:develop Sep 20, 2022
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

5 participants