Skip to content

Fix block_covariance remainder window handling#17

Open
rajanandsingh wants to merge 1 commit into
DiGyt:mainfrom
rajanandsingh:fix-block-covariance-remainder
Open

Fix block_covariance remainder window handling#17
rajanandsingh wants to merge 1 commit into
DiGyt:mainfrom
rajanandsingh:fix-block-covariance-remainder

Conversation

@rajanandsingh

Copy link
Copy Markdown

Summary

  • Align block count with idx_range in block_covariance to avoid reshape errors when samples are not divisible by window.
  • Add regression test covering the remainder case.

Repro

import numpy as np
from asrpy.asr_utils import block_covariance
data = np.random.randn(25, 26302)
block_covariance(data, window=100)

Tests
pytest

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