Skip to content

Commit 2dcf279

Browse files
committed
Removed commented lines
1 parent e849b26 commit 2dcf279

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

applications/eog.py

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -80,18 +80,9 @@ def __init__(self):
8080
self.timer = pg.QtCore.QTimer()
8181
self.timer.timeout.connect(self.update_plot)
8282
self.timer.start(15)
83-
84-
# self.calibration_time = 5
8583
self.start_time = time.time()
86-
# self.is_calibrating = True
8784

8885
def update_plot(self):
89-
# if self.is_calibrating:
90-
# # Skip processing during calibration
91-
# if time.time() - self.start_time >= self.calibration_time:
92-
# self.is_calibrating = False
93-
# print("Calibration complete. Starting peak detection.")
94-
# return
9586
samples, _ = self.inlet.pull_chunk(timeout=0.0, max_samples=30)
9687
if samples:
9788
for sample in samples:
@@ -171,14 +162,6 @@ def detect_peaks(self, signal, threshold):
171162
if __name__ == "__main__":
172163
app = QApplication(sys.argv)
173164
window = EOGMonitor()
174-
175-
# start_time = time.time()
176-
# calibration_time = 5
177-
178-
# while time.time() - start_time < calibration_time:
179-
# print("Calibrating...")
180-
# time.sleep(1)
181-
182165
print("Note: There will be a 2s calibration delay before peak detection starts.")
183166
window.show()
184167
sys.exit(app.exec_())

0 commit comments

Comments
 (0)