- abort by user [q]
- cycle through training patetrn by [+],[-] keys
[Status]
- improved report interval
- added on_report(): called every report iterval
This commit is contained in:
2025-12-17 19:14:57 +01:00
parent 866b61c77b
commit 8dcf0872b9
2 changed files with 22 additions and 10 deletions
+3 -2
View File
@@ -15,6 +15,7 @@ class Status:
print(f"{key} : {value}{unit}")
def on_change(self, status: dict) -> bool:
do_continue = True
if status == {}:
self.progress = -1
@@ -22,9 +23,9 @@ class Status:
progress = status["progress"]['value']
if self.progress < 0 or progress - self.progress >= self.update_interval:
self.progress = progress
self.on_report(status=status)
do_continue = self.on_report(status=status)
return True
return do_continue
def on_report(self, status: dict) -> bool:
return True