Skip to content

Ruff fixes#7

Merged
robaru merged 6 commits into
developfrom
ruff-fixes
Jan 16, 2026
Merged

Ruff fixes#7
robaru merged 6 commits into
developfrom
ruff-fixes

Conversation

@emanuelezanoni

Copy link
Copy Markdown
Collaborator

Applied Ruff linting fixes to the bayesian_listener folder.

I did not:

  • Fix docstring warnings in files I’m not responsible for
  • Remove commented-out code
  • Fully migrate random number generation to np.random.Generator (this caused ruff failures)

- Revert changes to np.random.seed and np.random.multivariate_normal in
  bayesian_listener.py and utils.py to restore deterministic test behavior.
- This is required because pytest test_model_single fails due to non-reproducible
  random numbers after switching to np.random.Generator.
- TODO: properly migrate to Generator API in a way that preserves test determinism.
@emanuelezanoni emanuelezanoni requested a review from robaru January 13, 2026 19:48
@robaru robaru merged commit cf000a8 into develop Jan 16, 2026
0 of 2 checks passed
@robaru robaru deleted the ruff-fixes branch January 20, 2026 14:07
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.

2 participants