Add brian_configuration summary helper#1806
Open
sukarxn wants to merge 1 commit into
Open
Conversation
Member
|
Hi @sukarxn Thanks for the PR. I did not yet have time to look into it in detail, but I noticed that at least one of your new tests is failing on our CI. Please note that checking the current preferences is a bit tricky, since our test suite changes them to run different code generation targets, and also sets the default type for scalars to float32 in some test runs to check that 32bit float computing works. |
Member
|
Hi @sukarxn, are you still interested in working on this? |
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.
Summary
Closes #641.
Adds a new public function,
brian_configuration(), that returns a plain-textsummary of Brian’s current preference values. The output follows the structure
of the autogenerated preference documentation, but reports active values
instead of defaults.
Changes
brian_configuration()to the preferences subsystembrian_configurationfrom the public Brian APITesting
.venv-brian2/bin/pytest brian2/tests/test_preferences.pyThis is my first PR, so please let me know if I should adjust anything.