Skip to content

fix issue #381. #383

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

Merged
merged 2 commits into from
Dec 1, 2022
Merged

fix issue #381. #383

merged 2 commits into from
Dec 1, 2022

Conversation

amcadmus
Copy link
Member

The returned system should be of the same type as the perturbed system

@amcadmus amcadmus requested a review from njzjz November 29, 2022 05:27
Copy link
Member

@njzjz njzjz left a comment

Choose a reason for hiding this comment

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

Approve, but at this time, the energies and forces will not match the coordinates.

@wanghan-iapcm
Copy link
Contributor

Approve, but at this time, the energies and forces will not match the coordinates.

You are right. what is the best behavior? raise an exception?

@njzjz
Copy link
Member

njzjz commented Nov 29, 2022

Sorry I think this PR does not work. The reason to cause this error is that the shape of energies and forces do not match the shape of coordinates. So only coordinates should be added into data, or just raise RuntimeError.

@njzjz njzjz self-requested a review November 29, 2022 07:04
@wanghan-iapcm wanghan-iapcm merged commit 9936003 into deepmodeling:devel Dec 1, 2022
@amcadmus amcadmus deleted the fix-381 branch December 1, 2022 13:13
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.

3 participants