Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compatible with brainstate>=0.1.0 #17

Merged
merged 4 commits into from
Nov 13, 2024
Merged

compatible with brainstate>=0.1.0 #17

merged 4 commits into from
Nov 13, 2024

Conversation

chaoming0625
Copy link
Collaborator

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:

  • Added LatencyEncoder class in braintools/_others/spike_encoder.py to encode rate input as spike trains using latency encoding.

Licensing Updates:

  • Added Apache License headers to braintools/_others/__init__.py and braintools/_others/spike_encoder.py. [1] [2]

Dependency Updates:

  • Updated pyproject.toml and setup.py to specify a minimum version for the brainstate package. [1] [2]

Code Improvements:

  • Changed bst.transform.for_loop to bst.compile.for_loop in multiple files for improved performance. [1] [2] [3]
  • Modified the msgpack_save function in braintools/file/msg_checkpoint.py to remove unnecessary file extension checks.

Import and All Updates:

  • Updated __init__.py files to include new imports and adjust the __all__ variable for proper module exports. [1] [2]

@chaoming0625 chaoming0625 merged commit c4a247e into main Nov 13, 2024
24 checks passed
@chaoming0625 chaoming0625 deleted the update branch November 13, 2024 05:38
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.

1 participant