fix: correct numpy boolean assertions#41
Merged
InauguralPhysicist merged 4 commits intoNov 14, 2025
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.