Skip to content

Commit 4a3775d

Browse files
authored
Change default deepmd_version and make the screen output complete (#1641)
1. make default deepmd_version setting be consistent with the doc 2. add StreamHandlers to root logger to make the screen output complete <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Updated versioning information for improved clarity. - Added a versioning element in the configuration for tracking and compatibility. - **Bug Fixes** - Enhanced logging configuration to improve message handling and visibility during runtime. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Signed-off-by: Scott Wu <71915685+scott-5@users.noreply.github.com>
1 parent 1c1e385 commit 4a3775d

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

dpgen/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
# dlogf_formatter=logging.Formatter('%(asctime)s - %(name)s - [%(filename)s:%(funcName)s - %(lineno)d ] - %(levelname)s \n %(message)s')
1212
dlogf.setFormatter(dlogf_formatter)
1313
dlog.addHandler(dlogf)
14+
logging.basicConfig(level=logging.WARNING)
1415

1516
__author__ = "Han Wang"
1617
__copyright__ = "Copyright 2019"

dpgen/generator/run.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4693,7 +4693,7 @@ def post_fp(iter_index, jdata):
46934693

46944694

46954695
def set_version(mdata):
4696-
deepmd_version = "1"
4696+
deepmd_version = "2"
46974697
mdata["deepmd_version"] = deepmd_version
46984698
return mdata
46994699

tests/generator/machine-local-v1.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"deepmd_version": "1",
23
"train_machine": {
34
"machine_type": "shell",
45
"lazy_local": true

0 commit comments

Comments
 (0)