Skip to content

Commit 2f795ea

Browse files
author
arch
committed
add debug code
1 parent 9d41f4a commit 2f795ea

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

funscript_editor/algorithms/funscriptgenerator.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import copy
55
import time
66
import math
7+
import json
78
import logging
89

910
from screeninfo import get_monitors
@@ -26,7 +27,6 @@
2627
import funscript_editor.algorithms.signalprocessing as sp
2728
import numpy as np
2829

29-
3030
@dataclass
3131
class FunscriptGeneratorParameter:
3232
""" Funscript Generator Parameter Dataclass with default values """
@@ -940,6 +940,10 @@ def run(self) -> None:
940940
with Listener(on_press=self.on_key_press) as _:
941941
status = self.tracking()
942942

943+
if False:
944+
with open('debug.json', 'w') as f:
945+
json.dump(self.score, f)
946+
943947
if self.params.use_kalman_filter:
944948
self.apply_kalman_filter()
945949

0 commit comments

Comments
 (0)