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 includes several changes to the
braintools
project, focusing on adding new functionality, updating dependencies, and improving code consistency. The most important changes include the addition of a new spike encoder, updates to licensing information, and modifications to dependency requirements.New Functionality:
LatencyEncoder
class inbraintools/_others/spike_encoder.py
to encode rate input as spike trains using latency encoding.Licensing Updates:
braintools/_others/__init__.py
andbraintools/_others/spike_encoder.py
. [1] [2]Dependency Updates:
pyproject.toml
andsetup.py
to specify a minimum version for thebrainstate
package. [1] [2]Code Improvements:
bst.transform.for_loop
tobst.compile.for_loop
in multiple files for improved performance. [1] [2] [3]msgpack_save
function inbraintools/file/msg_checkpoint.py
to remove unnecessary file extension checks.Import and All Updates:
__init__.py
files to include new imports and adjust the__all__
variable for proper module exports. [1] [2]