Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ repos:
files: \.py$
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.0.280
rev: v0.0.282
hooks:
- id: ruff
args: ["--fix"]
Expand Down Expand Up @@ -72,7 +72,7 @@ repos:
#- id: cmake-lint
# license header
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.5.1
rev: v1.5.3
hooks:
# C++, js
- id: insert-license
Expand Down
4 changes: 2 additions & 2 deletions deepmd/nvnmd/utils/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ def init_dscp(self, jdata: dict, jdata_parent: dict = {}) -> dict:
jdata["SEL"] = (jdata["sel"] + [0, 0, 0, 0])[0:4]
jdata["NNODE_FEAS"] = [1] + jdata["neuron"]
jdata["nlayer_fea"] = len(jdata["neuron"])
jdata["same_net"] = int(1) if jdata["type_one_side"] else int(0)
jdata["same_net"] = 1 if jdata["type_one_side"] else 0
# neighbor
jdata["NIDP"] = int(np.sum(jdata["sel"]))
jdata["NIX"] = 2 ** int(np.ceil(np.log2(jdata["NIDP"] / 1.5)))
Expand All @@ -170,7 +170,7 @@ def init_dscp(self, jdata: dict, jdata_parent: dict = {}) -> dict:
jdata["SEL"] = jdata["sel"]
jdata["NNODE_FEAS"] = [1] + jdata["neuron"]
jdata["nlayer_fea"] = len(jdata["neuron"])
jdata["same_net"] = int(1) if jdata["type_one_side"] else int(0)
jdata["same_net"] = 1 if jdata["type_one_side"] else 0
# neighbor
jdata["NIDP"] = int(jdata["sel"])
jdata["NIX"] = 2 ** int(np.ceil(np.log2(jdata["NIDP"] / 1.5)))
Expand Down