Code formatting and integrating braintools into brainpy#769
Merged
Conversation
…uctions" This reverts commit d302981.
…tements in base.py
braintools into brainpy
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.
This pull request focuses on improving code organization, readability, and consistency across multiple files in the
brainpylibrary. The changes include reordering imports, removing redundant blank lines, fixing indentation, and restructuring code for better clarity. These updates aim to enhance maintainability without altering functionality.Import Reorganization and Cleanup:
brainpy/__init__.pyto use a consistent alias forvisualize([brainpy/__init__.pyL107-R107](https://github.com/brainpy/BrainPy/pull/769/files#diff-5d974170896c28d12799f3397556cede8d8bf7177677371c3751908f85748c01L107-R107)).brainpy/_src/_delay.py,brainpy/_src/analysis/highdim/slow_points.py, andbrainpy/_src/analysis/utils/model.py([[1]](https://github.com/brainpy/BrainPy/pull/769/files#diff-33408bfb0f8807b460049204943ad016f5474e1743c356ef7bb359aa3183eae6R14-L17),[[2]](https://github.com/brainpy/BrainPy/pull/769/files#diff-2dc87b70e930c27c935a62c0e570776cf5dc6558cf82caedc40b4158530b4ae4R9-L25),[[3]](https://github.com/brainpy/BrainPy/pull/769/files#diff-5b4b38e112932aa4b6b6405f53a2b3714c788df70ddddef84fe2b36d5d33198dL4-R13)).Code Formatting:
brainpy/_src/analysis/highdim/slow_points.pyto align function arguments ([brainpy/_src/analysis/highdim/slow_points.pyL425-R425](https://github.com/brainpy/BrainPy/pull/769/files#diff-2dc87b70e930c27c935a62c0e570776cf5dc6558cf82caedc40b4158530b4ae4L425-R425)).brainpy/_src/analysis/constants.py,brainpy/_src/analysis/stability.py, andbrainpy/_src/analysis/plotstyle.py([[1]](https://github.com/brainpy/BrainPy/pull/769/files#diff-4a6df97870f22683d64e7e2af156e3856d89a95a1a326595f5bad73ad64a20ecL43-L44),[[2]](https://github.com/brainpy/BrainPy/pull/769/files#diff-b60d3dc52110054f767f4d2d4763817dec5155a49df85bdc8cc86962f6d3c205L30-L31),[[3]](https://github.com/brainpy/BrainPy/pull/769/files#diff-04138d21a122138dd4c312396ce6616650fe9718b5a88b5af807adfa7c35b40eL43)).Test Adjustments:
pytest.skipstatement inbrainpy/_src/analysis/lowdim/tests/test_bifurcation.pyto handle tests that fail in GitHub Actions ([brainpy/_src/analysis/lowdim/tests/test_bifurcation.pyR5](https://github.com/brainpy/BrainPy/pull/769/files#diff-d9e9cdbce1f887e5245339b5869fd54f85b707c6050f085545fa2eed05a13884R5)).Minor Refactoring:
brainpy/_src/analysis/lowdim/lowdim_bifurcation.pyandbrainpy/_src/analysis/lowdim/lowdim_phase_plane.py([[1]](https://github.com/brainpy/BrainPy/pull/769/files#diff-d511d4d0e97e7bb2dabab171679e12c1931dcaa61b747fe0192afc9832063501R3-R12),[[2]](https://github.com/brainpy/BrainPy/pull/769/files#diff-234a8dd82ae09a0fa925de4db20d494a92635690461799c2e9ef982dd9cae1cdR3-L8)).brainpy/_src/analysis/utils/function.pyandbrainpy/_src/analysis/utils/measurement.py([[1]](https://github.com/brainpy/BrainPy/pull/769/files#diff-a293896f595d497c454583e2b0848a3a55ed3ed291772a52d9506ed56756b938R30),[[2]](https://github.com/brainpy/BrainPy/pull/769/files#diff-41a1131f73dd3551083fd2ca31ccd8c69fa25a3944c03a94f1e2887d9365971fL119)).