Repository navigation
[Timefreq] Add time-warped newtimef helpers - #155
suraj-ranganath merged 1 commit into
Conversation
|
Claude finished @suraj-ranganath's task in 6m 9s —— View job Code review
BlockingNone. Important1. End-to-end Nits2. marks_pos = np.sort(np.concatenate([marks_pos, np.asarray([1, output_frames.size], dtype=int)]))
warp_matrix = timewarp(marks_pos, refs_pos)With coarse 3. Dead branch / unused parameter in def _wrap_to_pi(angles: np.ndarray, center: float = 0.0) -> np.ndarray:
wrapped = np.mod(angles, 2.0 * np.pi) # always in [0, 2*pi)
high = wrapped > np.pi - center
wrapped[high] -= 2.0 * np.pi
low = wrapped < center - np.pi # never true for the only caller (center=0)
wrapped[low] += 2.0 * np.pi
return wrappedAfter Test gapsCovered above in Important #1 — the only material gap is end-to-end numerical timewarp parity. The standalone-helper parity tests and the replayability/console tests are good. EEGLAB parity notes
|
c529930
into
feature/eeglab-core-parity-completion


Add standalone timewarp, angtimewarp, and tf_cycle_calc helpers, and thread time-warped marker options through newtimef and pop_newtimef. Wire the pop_newtimef cycle calculator dialog while keeping this stacked under PR #152 as part of epic #131.
Closes #146