forked from deepmodeling/dpgen
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #23 from ZLI-afk/devel
add gamma-line calculations for bcc and fcc
- Loading branch information
Showing
38 changed files
with
961 additions
and
856 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
dpgen init_bulk machine parameters | ||
================================== | ||
|
||
.. dargs:: | ||
:module: dpgen.data.arginfo | ||
:func: init_bulk_mdata_arginfo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
dpgen init_reaction machine parameters | ||
====================================== | ||
|
||
.. dargs:: | ||
:module: dpgen.data.arginfo | ||
:func: init_reaction_mdata_arginfo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
dpgen init_surf machine parameters | ||
================================== | ||
|
||
.. dargs:: | ||
:module: dpgen.data.arginfo | ||
:func: init_surf_mdata_arginfo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Command line interface | ||
====================== | ||
|
||
.. argparse:: | ||
:module: dpgen.main | ||
:func: main_parser | ||
:prog: dpgen |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
dpgen simplify machine parameters | ||
================================= | ||
|
||
.. dargs:: | ||
:module: dpgen.simplify.arginfo | ||
:func: simplify_mdata_arginfo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
A new parameter "vol_abs" is added. If you want to use absolute volume to get EOS, you can add | ||
|
||
"vol_abs": true, | ||
|
||
in the "eos" part of property.json | ||
if it's not mentioned, "False" is set defaultly | ||
when you are using absolute volume, there will be a notation in the last line of output during "make" process, which is like | ||
|
||
treat vol_start and vol_end as absolute volume |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
from typing import Tuple | ||
|
||
from dargs import Argument | ||
|
||
from dpgen.dispatcher.Dispatcher import mdata_arginfo | ||
|
||
|
||
def general_mdata_arginfo(name: str, tasks: Tuple[str]) -> Argument: | ||
"""Generate arginfo for general mdata. | ||
Parameters | ||
---------- | ||
name : str | ||
mdata name | ||
tasks : tuple[str] | ||
tuple of task keys, e.g. ("train", "model_devi", "fp") | ||
Returns | ||
------- | ||
Argument | ||
arginfo | ||
""" | ||
|
||
doc_api_version = "Please set to 1.0" | ||
doc_run_mdata = "machine.json file" | ||
arg_api_version = Argument("api_version", str, optional=False, doc=doc_api_version) | ||
|
||
sub_fields = [arg_api_version] | ||
doc_mdata = "Parameters of command, machine, and resources for %s" | ||
for task in tasks: | ||
sub_fields.append(Argument( | ||
task, dict, optional=False, sub_fields=mdata_arginfo(), | ||
doc=doc_mdata % task, | ||
)) | ||
return Argument(name, dict, sub_fields=sub_fields, doc=doc_run_mdata) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.