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
pop_newcrossf: Restore the cross-coherence options and Help control #1003
Restore the cross-coherence options and Help control. The continuous window measured 352 px high in MATLAB, 524 px before the fix and 352 px afterward. Stack base is #994.
Across 2 native openings, the largest vertical control offset was 0.61 px (target 1 px). Numerical comparison of time-frequency coherence: 0/2 measured cases within tolerance.
Channel 1 and next: Maximum absolute difference 0.04857 on reference scale 0.8676.
Component 2 and next: Maximum absolute difference 0.05891 on reference scale 0.3542.
EEGLAB 5e0be870, EEGPrep after 666875b6, clean Linux checkouts. Part of #875.
#1001 (agent/issue-875-plot-newcrossf, stacked on #994) restores the options and Help control in pop_newcrossf.py, adds resources/help/newcrossf.md, and adds geometry cases and references. Its review check passed. The window part is done: 352 px against MATLAB 352 px, worst control offset 0.61 px.
The numbers are still off: 0/2 cases are within tolerance (max abs diff 0.049 and 0.059), and #1001 does not touch the compute path.
Review and merge #1001 for the window part. Do not merge it as Fixes #1003: the function-parity label keeps this issue open until the numbers also match, so change it to Part of #1003.
The numeric gap needs a separate core-function PR. Diagnosing it needs MATLAB, which this runner does not have, and the fix needs a MATLAB reference run plus approval from Arno Delorme. Likely causes, in order: differences in default winsize, padratio, freqs or timesout compared with newcrossf.m; how timefreq windows and pads the data; and averaging differences for the default phasecoher type. Narrow it down by comparing freqs, times and tf_x with the MATLAB timefreq output on the same input before comparing coherence.
Activity
claude commentedon Dec 1, 2026
🤖 Plan:
Fixes #1003Research
#1001 (
agent/issue-875-plot-newcrossf, stacked on #994) restores the options and Help control inpop_newcrossf.py, addsresources/help/newcrossf.md, and adds geometry cases and references. Its review check passed. The window part is done: 352 px against MATLAB 352 px, worst control offset 0.61 px.The numbers are still off: 0/2 cases are within tolerance (max abs diff 0.049 and 0.059), and #1001 does not touch the compute path.
Relevant code
timefreqfunc/newcrossf.py#L43-L126: main compute pathtimefreqfunc/newcrossf.py#L129-L162: default frequencies and time-frequency options (maxfreq 50, log freqs starting at 3)timefreqfunc/newcrossf.py#L165-L188: coherence formulas for each typeProposed next step
Review and merge #1001 for the window part. Do not merge it as
Fixes #1003: thefunction-paritylabel keeps this issue open until the numbers also match, so change it toPart of #1003.The numeric gap needs a separate core-function PR. Diagnosing it needs MATLAB, which this runner does not have, and the fix needs a MATLAB reference run plus approval from Arno Delorme. Likely causes, in order: differences in default
winsize,padratio,freqsortimesoutcompared withnewcrossf.m; howtimefreqwindows and pads the data; and averaging differences for the defaultphasecohertype. Narrow it down by comparingfreqs,timesandtf_xwith the MATLABtimefreqoutput on the same input before comparing coherence.