|
32 | 32 | from mid_det.io import recording |
33 | 33 | from mid_det.ratings import core as rcore |
34 | 34 | from mid_det.ratings import display as rdisplay |
35 | | -from mid_det.ratings import flow |
| 35 | +from mid_det.ratings import screens |
36 | 36 | from mid_det.ratings.setup_wizard import run_ratings_wizard |
37 | 37 |
|
38 | 38 | _PACKAGE_DIR = Path(__file__).resolve().parent # src/mid_det/ratings/ |
@@ -97,32 +97,32 @@ def run() -> None: |
97 | 97 | pos=(0, -0.38), height=1.0 / 28, color="white", autoLog=False, |
98 | 98 | ) |
99 | 99 |
|
100 | | - pages = flow.load_instruction_pages(_TEXT_DIR) |
| 100 | + pages = screens.load_instruction_pages(_TEXT_DIR) |
101 | 101 | # pages: 0=intro, 1=valence, 2=arousal, 3=independence, 4=final |
102 | 102 |
|
103 | 103 | # ── INSTRUCTIONS + PRACTICE DEMOS ──────────────────────────────────────── |
104 | 104 | if show_instructions: |
105 | | - flow.show_text_page(win, kb, instr_text, instr_hint, pages[0]) |
106 | | - flow.show_text_page(win, kb, instr_text, instr_hint, pages[1]) |
107 | | - flow.run_slider(win, kb, stim, "valence", cue=None) # valence practice demo |
108 | | - flow.show_text_page(win, kb, instr_text, instr_hint, pages[2]) |
109 | | - flow.run_slider(win, kb, stim, "arousal", cue=None) # arousal practice demo |
110 | | - flow.show_text_page(win, kb, instr_text, instr_hint, pages[3]) |
| 105 | + screens.show_text_page(win, kb, instr_text, instr_hint, pages[0]) |
| 106 | + screens.show_text_page(win, kb, instr_text, instr_hint, pages[1]) |
| 107 | + screens.run_slider(win, kb, stim, "valence", cue=None) # valence practice demo |
| 108 | + screens.show_text_page(win, kb, instr_text, instr_hint, pages[2]) |
| 109 | + screens.run_slider(win, kb, stim, "arousal", cue=None) # arousal practice demo |
| 110 | + screens.show_text_page(win, kb, instr_text, instr_hint, pages[3]) |
111 | 111 |
|
112 | 112 | # Final "press 3 to select" page is always shown (MATLAB inst5). |
113 | | - flow.show_text_page(win, kb, instr_text, instr_hint, pages[4]) |
| 113 | + screens.show_text_page(win, kb, instr_text, instr_hint, pages[4]) |
114 | 114 |
|
115 | 115 | # ── RATING TRIALS ──────────────────────────────────────────────────────── |
116 | | - flow.show_fixation(win, stim) |
| 116 | + screens.show_fixation(win, stim) |
117 | 117 | results: list[dict] = [] |
118 | 118 | for cue in rcore.RATING_CUES: |
119 | | - valence = flow.run_slider(win, kb, stim, "valence", cue) |
120 | | - arousal = flow.run_slider(win, kb, stim, "arousal", cue) |
| 119 | + valence = screens.run_slider(win, kb, stim, "valence", cue) |
| 120 | + arousal = screens.run_slider(win, kb, stim, "arousal", cue) |
121 | 121 | results.append({ |
122 | 122 | "polarity": cue.polarity, "magnitude": cue.magnitude, |
123 | 123 | "valence": valence, "arousal": arousal, |
124 | 124 | }) |
125 | | - flow.show_fixation(win, stim) |
| 125 | + screens.show_fixation(win, stim) |
126 | 126 |
|
127 | 127 | # ── WRITE CSV ──────────────────────────────────────────────────────────── |
128 | 128 | # (manifest.json was already written to run_dir at startup) |
|
0 commit comments