You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Route low-level processing messages through logging #182
🤖 Low-level processing helpers still print progress and warnings directly to stdout. That bypasses the console-safe logging path and can pollute JSON CLI output or the mixed GUI plus eegprep-console prompt.
Relevant code:
src/eegprep/functions/sigprocfunc/epoch.py:54 - direct progress print
src/eegprep/functions/sigprocfunc/epoch.py:119 - direct warning print
src/eegprep/functions/miscfunc/eeg_mne2eeg_epochs.py:48 - direct conversion warning print
Acceptance criteria:
Processing messages use logging, not print.
CLI JSON output remains clean.
Tests cover no stdout for affected public workflows.
Three direct print() calls in low-level processing helpers bypass the standard logging path, so progress and warning lines leak to stdout regardless of the host (CLI JSON, eegprep-console, GUI). Root cause: these modules never adopted the logger = logging.getLogger(__name__) pattern used by the rest of sigprocfunc//miscfunc/.
src/eegprep/functions/sigprocfunc/runica.py#L28 - existing logger pattern to mirror
Proposed Fix
Add module loggers and route the three messages through them: logger.info('Epoching...') for progress, logger.warning(...) for the two epoch warnings and the reference-conversion warning. Add regression tests that call each public workflow and assert no captured stdout.
Activity
claude commentedon Jun 10, 2026
🤖 # Research
Three direct
print()calls in low-level processing helpers bypass the standard logging path, so progress and warning lines leak to stdout regardless of the host (CLI JSON,eegprep-console, GUI). Root cause: these modules never adopted thelogger = logging.getLogger(__name__)pattern used by the rest ofsigprocfunc//miscfunc/.Relevant code
src/eegprep/functions/sigprocfunc/epoch.py#L54-print('Epoching...')src/eegprep/functions/sigprocfunc/epoch.py#L119,L124- per-event boundary/valuelim warningssrc/eegprep/functions/miscfunc/eeg_mne2eeg_epochs.py#L48- reference-conversion warningsrc/eegprep/functions/sigprocfunc/runica.py#L28- existing logger pattern to mirrorProposed Fix
Add module loggers and route the three messages through them:
logger.info('Epoching...')for progress,logger.warning(...)for the two epoch warnings and the reference-conversion warning. Add regression tests that call each public workflow and assert no captured stdout.PR: #184
🤖 Plan:
agent/20260610-fix-182epochandeeg_mne2eeg_epochslogginginepoch.pyandeeg_mne2eeg_epochs.py./pre-commit.py --fixand run targeted tests (pass)