You've already forked HeurAMS-legacy
fix: 改进
This commit is contained in:
@@ -41,7 +41,7 @@ def load_nucleon(path: pathlib.Path, fmt="toml"):
|
||||
lst.append(
|
||||
(
|
||||
Nucleon(
|
||||
hasher.hash(item), attr, deepcopy(nested_data["__metadata__"])
|
||||
item, attr, deepcopy(nested_data["__metadata__"])
|
||||
),
|
||||
deepcopy(nested_data["__metadata__"]["orbital"]),
|
||||
)
|
||||
@@ -68,6 +68,6 @@ def load_electron(path: pathlib.Path, fmt="json") -> dict:
|
||||
dic = dict()
|
||||
for item, attr in dictdata.items():
|
||||
logger.debug("处理电子项目: %s", item)
|
||||
dic[item] = Electron(hasher.hash(item), attr)
|
||||
dic[item] = Electron(item, attr)
|
||||
logger.debug("load_electron 完成,加载了 %d 个 Electron 对象", len(dic))
|
||||
return dic
|
||||
|
||||
Reference in New Issue
Block a user