Skip to content

Fix bug when 2 signals in a pair are not perfectly aligned for wavelet coherence#232

Merged
patricefortin merged 1 commit intomasterfrom
fix/wavelet-caching-key
Jul 11, 2025
Merged

Fix bug when 2 signals in a pair are not perfectly aligned for wavelet coherence#232
patricefortin merged 1 commit intomasterfrom
fix/wavelet-caching-key

Conversation

@patricefortin
Copy link
Collaborator

Add length of signal to the wavelet caching key

There are cases where 2 signals in a pair are not exactly the same length (one sample of difference).

In these cases the longest signal is cropped. But when computing intra, we should use the original signal, and not load (from cache) the cropped signal

There are cases where 2 signals in a pair are not exactly the same
length (one sample of difference). In these cases the longest signal is
cropped. But when computing intra, we reuse the same signal (not from
the pair), so we should load a cropped cached signal.
@patricefortin patricefortin changed the title Fix caching bug when 2 signals in a pair are not perfectly aligned Fix bug when 2 signals in a pair are not perfectly aligned for wavelet coherence Jul 11, 2025
@patricefortin patricefortin merged commit 20b9784 into master Jul 11, 2025
6 checks passed
@deep-introspection deep-introspection deleted the fix/wavelet-caching-key branch January 4, 2026 20:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant