Skip to content

fix issue #381. #383

Merged
wanghan-iapcm merged 2 commits intodeepmodeling:develfrom
amcadmus:fix-381
Dec 1, 2022
Merged

fix issue #381. #383
wanghan-iapcm merged 2 commits intodeepmodeling:develfrom
amcadmus:fix-381

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