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

fix bug issue:597 #598

Merged
merged 3 commits into from
Nov 25, 2021
Merged

fix bug issue:597 #598

merged 3 commits into from
Nov 25, 2021

Conversation

robinzyb
Copy link
Collaborator

@robinzyb robinzyb commented Nov 25, 2021

Original file: out_data_post_fp_cp2k/02.fp/task.000.000000

The original file has "Not converged" Mark in contents.
Newest dpdata won't read outputs without converged SCF, hence the error occurs.
The output file has been replaced by "converged" mark keeping other contents untouched.
The content of output remains correct for unittest.

This PR fixes #597

@wanghan-iapcm
Copy link
Contributor

Hello @robinzyb The test on the energy value failed to match within 5 places. Please fix. Thanks!

======================================================================
FAIL: test_energy (tests.generator.test_post_fp.TestPostCP2K)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/runner/work/dpgen/dpgen/tests/generator/comp_sys.py", line 96, in test_energy
    self.assertAlmostEqual(self.system_1.data['energies'][ff],
AssertionError: -844.7581865210245 != -844.7582606992446 within 5 places (7.417822007482755e-05 difference) : energies[0] failed

@wanghan-iapcm wanghan-iapcm merged commit c6ce120 into deepmodeling:devel Nov 25, 2021
amcadmus added a commit to amcadmus/dpgen that referenced this pull request Nov 25, 2021
* fix bug issue:597

* fix energies mismatch bug for dpdata cp2k unittest

* fix issue 597

Co-authored-by: Yongbin Zhuang <38876805+robinzyb@users.noreply.github.com>
wanghan-iapcm added a commit that referenced this pull request Nov 25, 2021
* bump dpdata version to 0.2.4

* fix AssertionErrors in TestPostGaussian (#5)

* fix bug issue:597 (#598) (#6)

* fix bug issue:597

* fix energies mismatch bug for dpdata cp2k unittest

* fix issue 597

Co-authored-by: Yongbin Zhuang <38876805+robinzyb@users.noreply.github.com>

Co-authored-by: Han Wang <wang_han@iapcm.ac.cn>
Co-authored-by: Jinzhe Zeng <jinzhe.zeng@rutgers.edu>
Co-authored-by: Han Wang <amcadmus@gmail.com>
Co-authored-by: Yongbin Zhuang <38876805+robinzyb@users.noreply.github.com>
Cloudac7 pushed a commit to Cloudac7/dpgen that referenced this pull request Dec 1, 2021
* fix bug issue:597

* fix energies mismatch bug for dpdata cp2k unittest

* fix issue 597
Cloudac7 pushed a commit to Cloudac7/dpgen that referenced this pull request Dec 1, 2021
* bump dpdata version to 0.2.4

* fix AssertionErrors in TestPostGaussian (deepmodeling#5)

* fix bug issue:597 (deepmodeling#598) (deepmodeling#6)

* fix bug issue:597

* fix energies mismatch bug for dpdata cp2k unittest

* fix issue 597

Co-authored-by: Yongbin Zhuang <38876805+robinzyb@users.noreply.github.com>

Co-authored-by: Han Wang <wang_han@iapcm.ac.cn>
Co-authored-by: Jinzhe Zeng <jinzhe.zeng@rutgers.edu>
Co-authored-by: Han Wang <amcadmus@gmail.com>
Co-authored-by: Yongbin Zhuang <38876805+robinzyb@users.noreply.github.com>
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.

2 participants