From 3988b55f1ff11aad17f930f5d4e9ba918a0b06a2 Mon Sep 17 00:00:00 2001 From: david-ajax Date: Fri, 25 Jul 2025 23:50:07 +0800 Subject: [PATCH] =?UTF-8?q?v0.2.5=20=E4=BF=AE=E5=A4=8D=E5=88=9D=E6=AC=A1?= =?UTF-8?q?=E6=BF=80=E6=B4=BB=E7=9B=B8=E5=85=B3=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- __pycache__/particles.cpython-313.pyc | Bin 9739 -> 9882 bytes __pycache__/reactor.cpython-313.pyc | Bin 5866 -> 5977 bytes config.toml | 2 +- main.py | 2 +- particles.py | 8 ++++++-- reactor.py | 3 +++ 6 files changed, 11 insertions(+), 4 deletions(-) diff --git a/__pycache__/particles.cpython-313.pyc b/__pycache__/particles.cpython-313.pyc index 4fd18652eb20ad617faf22495c9f1b5daccb09f2..aedfaad8e90a62ef6cc7767d1d3a21ce9251e6ce 100644 GIT binary patch delta 2236 zcmZ`)TWl0n7~a#pbg$iQ_rBY1OS^>*NTpcmLkU%GmIl_q%0;MMhTW0fWx7+&%$CJO zS%Lu)OSBvx5M$s)i@_MfnrPyc2Os1K4ha_lKswq&i|kP z`t|g+otJlc<~$y!3BK^mnf%ph&wEZQ?%{NN7{K zDQ2SHv=`8q_5n7JwxpY5rYDV?ChCWM%V=QFYIc|e!+yNCs0-EU0(H7@I!Gf&LqeoB zMgAq^H+J4U7IT4D>PGM&G$D8qd^arniQfm}`-BEzQ3*f?4Y8uNpG4Ue>*wgREO8MY$}gW;E}>3)^i^!G&|STaQ0F8hToV&1gPg*N9MA+P>E$H!PT@ov>ry+S=I@ zjzQvLisO#iEqK^&=kKfHU_^0p6bF_PoYVoUZXOpa4>Zfg4!IJ^#g;8JVKv@c1Mol# z-gb47`|K-MwfR?9>ue-?e(ThZ*?0n$oovW`ltgPY?q^ASX%Kt{b-ieAN|1eQU6TmC zyx4STE6)+D5eUVyg$6zY-K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M7zt}iZ^%!CJ1)A_xpGH&v0K5a)n3hhOo%yenu}aOgaVMzWGzwxQn%QP tQp+-n^NS|`67gdT2Z}T>Y|a(+Wn|=-yj!fFKa-JB^b-S!EaC-90sw(0Br*U1 diff --git a/config.toml b/config.toml index 538c6d0..e64f846 100644 --- a/config.toml +++ b/config.toml @@ -1,7 +1,7 @@ # [调试] 将更改保存到文件 save = 1 # [调试] 覆写时间 -time_override = 10 +time_override = 11 # 对于每个项目的新记忆核子数量 tasked_number = 12 # 竖屏适配 diff --git a/main.py b/main.py index 5a832e1..6728422 100644 --- a/main.py +++ b/main.py @@ -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") diff --git a/particles.py b/particles.py index d54e2d4..a089b3a 100644 --- a/particles.py +++ b/particles.py @@ -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: diff --git a/reactor.py b/reactor.py index 038045a..088def5 100644 --- a/reactor.py +++ b/reactor.py @@ -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])