1 Commits
0.2.4 ... 0.2.5

Author SHA1 Message Date
3988b55f1f v0.2.5 修复初次激活相关问题 2025-07-25 23:50:07 +08:00
6 changed files with 11 additions and 4 deletions

Binary file not shown.

View File

@@ -1,7 +1,7 @@
# [调试] 将更改保存到文件
save = 1
# [调试] 覆写时间
time_override = 10
time_override = 11
# 对于每个项目的新记忆核子数量
tasked_number = 12
# 竖屏适配

View File

@@ -12,7 +12,7 @@ import particles as pt
from reactor import Reactor
import auxiliary as aux
ver = '0.2.4'
ver = '0.2.6'
config = aux.ConfigFile("config.toml")

View File

@@ -47,7 +47,7 @@ class Electron():
'is_activated': self.is_activated
}
def revisor(self, quality):
def revisor(self, quality: int = 5, is_new_activation: bool = False):
"""SM-2 算法迭代决策机制实现
根据 quality(0 ~ 5) 进行参数迭代最佳间隔
quality 由主程序评估
@@ -68,7 +68,11 @@ class Electron():
else:
self.rept += 1
self.real_rept += 1
if is_new_activation: # 初次激活
self.rept = 0
self.efactor = 2.5
if self.rept == 0: # 刚被重置或初次激活后复习
self.interval = 1 # I(1)
elif self.rept == 1:

View File

@@ -103,6 +103,9 @@ class Reactor():
self.electron_file.save()
def report(self, atom, quality):
if atom in self.atoms_new:
atom[0].revisor(quality, True)
return 0
if atom[0] not in self.reported:
atom[0].revisor(quality)
self.reported.add(atom[0])