You've already forked HeurAMS-legacy
更新
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
from .electron import Electron
|
||||
from .nucleon import Nucleon
|
||||
from .orbital import Orbital
|
||||
from .atom import Atom
|
||||
from .probe import probe_all, probe_by_filename
|
||||
@@ -1,5 +1,6 @@
|
||||
from .electron import Electron
|
||||
from .nucleon import Nucleon
|
||||
from .orbital import Orbital
|
||||
from typing import TypedDict
|
||||
import pathlib
|
||||
import typing
|
||||
@@ -13,7 +14,7 @@ class AtomRegister(TypedDict):
|
||||
electron: Electron
|
||||
electron_path: pathlib.Path
|
||||
electron_fmt: str
|
||||
orbital: dict
|
||||
orbital: Orbital
|
||||
orbital_path: pathlib.Path
|
||||
orbital_fmt: str
|
||||
|
||||
@@ -26,8 +27,6 @@ class Atom():
|
||||
以及关联路径
|
||||
"""
|
||||
|
||||
|
||||
|
||||
def __init__(self, ident = ""):
|
||||
self.ident = ident
|
||||
self.register: AtomRegister = { # type: ignore
|
||||
|
||||
18
src/heurams/kernel/particles/orbital.py
Normal file
18
src/heurams/kernel/particles/orbital.py
Normal file
@@ -0,0 +1,18 @@
|
||||
from typing import TypedDict
|
||||
|
||||
class Orbital(TypedDict):
|
||||
quick_view: list
|
||||
recognition: list
|
||||
final_review: list
|
||||
puzzle_config: dict
|
||||
|
||||
"""一份示例
|
||||
["__metadata__.orbital"] # 内置的推荐学习方案
|
||||
quick_review = [["cloze", 1], ["mcq", 0.5], ["recognition", 1]]
|
||||
recognition = [["recognition", 1]]
|
||||
final_review = [["cloze", 0.7], ["mcq", 0.7], ["recognition", 1]]
|
||||
|
||||
["__metadata__.orbital.puzzle_config"]
|
||||
cloze = { from = "content"}
|
||||
mcq = { from = "keyword_note" }
|
||||
"""
|
||||
Reference in New Issue
Block a user