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
runamica: min_dll and min_grad_norm written as %f, so AMICA's stopping rules never fire #680
At edf694c, runamica._write_param_file writes every float parameter with %f except minlrate and mineig. min_dll=1e-9 and min_grad_norm=1e-7 therefore reach the amica15 binary as 0.000000, so use_min_dll and use_grad_norm can never stop a run and every fit runs to max_iter. Fix: write both (and any other parameter that can be below 1e-6) in scientific format, as for minlrate and mineig, and add a test that reads the parameter file back.
Found while setting conservative AMICA convergence for NEMAR's nemar-ica (nemarOrg/nemar-process#81, epic nemarOrg/nemar-cli#2324). pAMICA receives the correct values; only the amica15 binary path is affected.
At edf694c, min_dll and min_grad_norm were in _INT_PARAMS, not written with %f. amica15 therefore read 0 for both, and the stop rules never fired. #637 (d0dea04, merged 2026-11-18, after edf694c) fixed this. It moved both keys to _SCI_PARAMS and added tests that read the file back, including a Fortran f15.12-style parse.
No change needed. On current develop (6b8012c), no other nonzero default below 1e-5 goes through the %f fallback. NEMAR needs eegprep at d0dea04 or later. Recommend closing as fixed by #637.
Activity
claude commentedon Nov 24, 2026
🤖 Plan:
_write_param_filedevelopbehaviorOpen PR(not needed, already fixed)Research
At edf694c,
min_dllandmin_grad_normwere in_INT_PARAMS, not written with%f. amica15 therefore read0for both, and the stop rules never fired. #637 (d0dea04, merged 2026-11-18, after edf694c) fixed this. It moved both keys to_SCI_PARAMSand added tests that read the file back, including a Fortranf15.12-style parse.Relevant code
src/eegprep/functions/sigprocfunc/runamica.py#L174-L180-_SCI_PARAMSnow includes both thresholdssrc/eegprep/functions/sigprocfunc/runamica.py#L304-L318- param writertests/test_runamica.py#L45-L62- read-back tests (pass on 6b8012c)Proposed Fix
No change needed. On current
develop(6b8012c), no other nonzero default below 1e-5 goes through the%ffallback. NEMAR needs eegprep at d0dea04 or later. Recommend closing as fixed by #637.Cite sccn/eegprep#680 at the binary's xfail
Document the burst share and rejection off
Run the full e2e pAMICA at the recipe's 4000
PZ: nemar-ica on the serving copy, with browser weights (#81)