Skip to content

fix: correct numpy boolean assertions#41

Merged
InauguralPhysicist merged 4 commits into
mainfrom
claude/test-latest-commit-01QSQV3zRfFfVNk4XFGV8WQv
Nov 14, 2025
Merged

fix: correct numpy boolean assertions#41
InauguralPhysicist merged 4 commits into
mainfrom
claude/test-latest-commit-01QSQV3zRfFfVNk4XFGV8WQv

Conversation

@InauguralPhysicist

Copy link
Copy Markdown
Owner

No description provided.

Changed 'is True' and 'is False' to direct boolean assertions
to handle numpy boolean types (np.True_, np.False_).

The 'is' operator checks object identity, which fails for numpy
booleans. Using 'assert x' and 'assert not x' works for both
Python and numpy booleans.

Fixes:
- test_paradox_coordination.py (4 assertions)
- test_self_simulation.py (6 assertions)

All 367 tests now pass.
Black reformatted 4 test files after pytest imports were restored:
- tests/test_adaptive_control.py
- tests/test_integration.py
- tests/test_frequency_selective_damping.py
- tests/test_eigen_noperthedron.py

All tests still passing (367/367).
Formatted 4 additional Python files that were missed:
- demo_multi_agent.py
- demo_self_simulation.py
- visualize_lightlike_invariant.py
- visualize_noise_types.py

CI now checks all Python files in repository, not just src/tests/benchmarks.
All 61 Python files now pass Black formatting.
Applied isort to:
- visualize_lightlike_invariant.py
- visualize_noise_types.py

All Python files now pass both Black and isort checks.
@InauguralPhysicist InauguralPhysicist merged commit e683c70 into main Nov 14, 2025
16 checks passed
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