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

Get from_poscar_path only when from_poscar is true #537

Merged
merged 1 commit into from
Sep 8, 2021

Conversation

shazj99
Copy link
Contributor

@shazj99 shazj99 commented Sep 7, 2021

When running init_bulk, from_poscar_path param is actually not necessary if from_poscar is False. But now the job will fail in the absence of from_poscar_path.


Traceback (most recent call last):
File "/usr/local/bin/dpgen", line 8, in
sys.exit(main())
File "/usr/local/lib/python3.7/dist-packages/dpgen/main.py", line 175, in main
args.func(args)
File "/usr/local/lib/python3.7/dist-packages/dpgen/data/gen.py", line 702, in gen_init_bulk
out_dir = out_dir_name(jdata)
File "/usr/local/lib/python3.7/dist-packages/dpgen/data/gen.py", line 81, in out_dir_name
from_poscar_path = jdata['from_poscar_path']
KeyError: 'from_poscar_path'

Change-Id: I17774bee345634e4e72bd783e8112eefaaf9f0d3
@codecov-commenter
Copy link

codecov-commenter commented Sep 8, 2021

Codecov Report

Merging #537 (11e1ffe) into master (9dbac8d) will decrease coverage by 0.00%.
The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #537      +/-   ##
==========================================
- Coverage   33.04%   33.03%   -0.01%     
==========================================
  Files          86       86              
  Lines       14730    14730              
==========================================
- Hits         4867     4866       -1     
- Misses       9863     9864       +1     
Impacted Files Coverage Δ
dpgen/data/gen.py 51.04% <0.00%> (-0.17%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9dbac8d...11e1ffe. Read the comment docs.

@amcadmus amcadmus merged commit 02037ad into deepmodeling:master Sep 8, 2021
amcadmus added a commit that referenced this pull request Oct 11, 2021
* fix typo in github actions release to conda

* Get from_poscar_path only when from_poscar is true (#537)

Change-Id: I17774bee345634e4e72bd783e8112eefaaf9f0d3

Co-authored-by: Zhengju Sha <jenny@bytedance.com>

* fix dispatcher bugs in autotest run

Change-Id: I0e48ec74d0a0d0d6c26988c6e8c28428a362b5d9

Co-authored-by: Han Wang <amcadmus@gmail.com>
Co-authored-by: felix5572 <felix5572@github.com>
Co-authored-by: Zhengju Sha <jenny@bytedance.com>
Cloudac7 pushed a commit to Cloudac7/dpgen that referenced this pull request Dec 1, 2021
Change-Id: I17774bee345634e4e72bd783e8112eefaaf9f0d3

Co-authored-by: Zhengju Sha <jenny@bytedance.com>
Cloudac7 pushed a commit to Cloudac7/dpgen that referenced this pull request Dec 1, 2021
* fix typo in github actions release to conda

* Get from_poscar_path only when from_poscar is true (deepmodeling#537)

Change-Id: I17774bee345634e4e72bd783e8112eefaaf9f0d3

Co-authored-by: Zhengju Sha <jenny@bytedance.com>

* fix dispatcher bugs in autotest run

Change-Id: I0e48ec74d0a0d0d6c26988c6e8c28428a362b5d9

Co-authored-by: Han Wang <amcadmus@gmail.com>
Co-authored-by: felix5572 <felix5572@github.com>
Co-authored-by: Zhengju Sha <jenny@bytedance.com>
wanghan-iapcm pushed a commit that referenced this pull request Dec 2, 2021
* fix typo in github actions release to conda

* Get from_poscar_path only when from_poscar is true (#537)

Change-Id: I17774bee345634e4e72bd783e8112eefaaf9f0d3

Co-authored-by: Zhengju Sha <jenny@bytedance.com>

* adapt different trust level for different sys_configs

Co-authored-by: Han Wang <amcadmus@gmail.com>
Co-authored-by: felix5572 <felix5572@github.com>
Co-authored-by: shazj99 <shazj99@gmail.com>
Co-authored-by: Zhengju Sha <jenny@bytedance.com>
AnguseZhang pushed a commit that referenced this pull request Feb 8, 2022
…lax step (#631)

* fix typo in github actions release to conda

* Get from_poscar_path only when from_poscar is true (#537)

Change-Id: I17774bee345634e4e72bd783e8112eefaaf9f0d3

Co-authored-by: Zhengju Sha <jenny@bytedance.com>

* Add `minimize` step with `fix   1 all box/relax tri 0.0`

Co-authored-by: Han Wang <amcadmus@gmail.com>
Co-authored-by: felix5572 <felix5572@github.com>
Co-authored-by: shazj99 <shazj99@gmail.com>
Co-authored-by: Zhengju Sha <jenny@bytedance.com>
Co-authored-by: Han Wang <wang_han@iapcm.ac.cn>
wanghan-iapcm pushed a commit that referenced this pull request Apr 20, 2022
* fix typo in github actions release to conda

* Get from_poscar_path only when from_poscar is true (#537)

Change-Id: I17774bee345634e4e72bd783e8112eefaaf9f0d3

Co-authored-by: Zhengju Sha <jenny@bytedance.com>

* Fix QE pwscf AssertionError

details in #683

Co-authored-by: Han Wang <amcadmus@gmail.com>
Co-authored-by: felix5572 <felix5572@github.com>
Co-authored-by: shazj99 <shazj99@gmail.com>
Co-authored-by: Zhengju Sha <jenny@bytedance.com>
Co-authored-by: Han Wang <wang_han@iapcm.ac.cn>
wanghan-iapcm pushed a commit that referenced this pull request Apr 20, 2022
* fix typo in github actions release to conda

* Get from_poscar_path only when from_poscar is true (#537)

Change-Id: I17774bee345634e4e72bd783e8112eefaaf9f0d3

Co-authored-by: Zhengju Sha <jenny@bytedance.com>

* feature: merge run.py

* fix:fix syntax bug

* fix summary ratio bug

* fix: fix bug of var(calypso_run_opt_path) not defined

* reorganize code v1

* add: add unittest

* add: add some explainations of dp+calypso in README.md

* change a little bit in readme.md

* change position of function

* add deepmd-kit>=2.0.1 install_require in setup.py

* test failed cause no tensorflow module so add tensorflow in setup.py

* calc model devi in command line

* fix some small bugs of modd and PBS script of cpu

* fix unittest

* delete parse_input.dat

* fix unittest

* first reorganization

* secord reorganization

* fix bugs

* fix: fix bugs in modd_calypso.py write_modd.py and run.py

* change functions name and fix bugs

* remove modd_calypso.py

* remove: remove modd_calypso.py

* remove some useless outputs

* restore dispatcher/PBS.py

* refactor: make some changes in calypso related code

- rename model_devi_calypso.py run_calypso.py
- rename calypso.py make_calypso.py
- add new file calypso_check_outcar.py calypso_run_opt.py
- add new file calypso_run_model_devi.py
- delete write_modd.py
- modify README.md and run.py

* refactor: move calypso main code(run.py) into run_calypso.py and modify test_calypso.py

* docs: modify README.md related to CALYPSO

* delete some useless comments in run.py

* add write_model_devi_out function into make_calypso.py for passing unittest

* fix a spelling mistake in calypso_run_opt.py (famx -> fmax)

* change runopt script's name from run_opt.py to calypso_run_opt.py and fix bug in runopt script

* fix unittest

Co-authored-by: Han Wang <amcadmus@gmail.com>
Co-authored-by: felix5572 <felix5572@github.com>
Co-authored-by: shazj99 <shazj99@gmail.com>
Co-authored-by: Zhengju Sha <jenny@bytedance.com>
Co-authored-by: Han Wang <wang_han@iapcm.ac.cn>
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.

4 participants