Skip to content

Commit

Permalink
Disable config file for user study
Browse files Browse the repository at this point in the history
So each task simulates using the GUI after a reboot.
  • Loading branch information
peterstory committed Jun 6, 2024
1 parent dae221e commit 3ba30eb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
3 changes: 3 additions & 0 deletions src/pydiode/gui/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
# Check subprocesses every SLEEP milliseconds
SLEEP = 250

# Certain features will be disabled for the user study
USER_STUDY = True


def get_process_errors(name_popen):
"""
Expand Down
7 changes: 5 additions & 2 deletions src/pydiode/gui/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import sys
from tkinter import BooleanVar, IntVar, Listbox, StringVar, Tk, ttk

from pydiode.gui.common import USER_STUDY
from pydiode.gui.receive import (
receive_or_cancel,
receive_test,
Expand Down Expand Up @@ -248,8 +249,10 @@ def gui_main():
"receive_repeatedly": receive_repeatedly.get(),
"saved_window_should_show": SavedWindow.should_show.get(),
}
with open(CONFIG, "w") as configfile:
config.write(configfile)
# Disabled for the user study, to simulate using the GUI after a reboot
if not USER_STUDY:
with open(CONFIG, "w") as configfile:
config.write(configfile)


def main():
Expand Down

0 comments on commit 3ba30eb

Please sign in to comment.