Archived
0
0

fix: 改进

This commit is contained in:
2025-12-16 04:07:37 +08:00
parent 5f2e8f6523
commit fb8355aec1
6 changed files with 38 additions and 24 deletions

View File

@@ -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