Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
87 changes: 85 additions & 2 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,3 +1,86 @@
# Cross-platform line-ending policy (Linux / macOS / Windows).
#
# Everything text is stored as LF in the repository and checked out as LF on
# every OS, so a file has identical bytes on Linux, macOS, and Windows. Git for
# Windows handles LF transparently and modern editors (VS Code, PyCharm, etc.)
# respect it, so there is no need for per-developer core.autocrlf settings.
# The only exceptions are Windows-native shell scripts, which require CRLF.
#
# After changing this file, run `git add --renormalize .` once to rewrite any
# files that were previously committed with mixed/CRLF endings.

# Auto-detect text files and normalize them to LF in the repo and working tree.
* text=auto eol=lf
*.bat text eol=crlf
*.cmd text eol=crlf

# ---------------------------------------------------------------------------
# Source & text — force LF, enable language-aware diffs where useful
# ---------------------------------------------------------------------------
*.py text diff=python
*.pyi text diff=python
*.pyx text diff=python
*.pxd text diff=python
*.rst text
*.md text diff=markdown
*.txt text
*.cfg text
*.ini text
*.toml text
*.yml text
*.yaml text
*.json text
*.ipynb text
*.sh text eol=lf
Makefile text eol=lf

# ---------------------------------------------------------------------------
# Windows-only scripts — must be CRLF to run on Windows
# ---------------------------------------------------------------------------
*.bat text eol=crlf
*.cmd text eol=crlf
*.ps1 text eol=crlf

# ---------------------------------------------------------------------------
# Binary — never normalize, never diff as text
# ---------------------------------------------------------------------------
*.png binary
*.jpg binary
*.jpeg binary
*.gif binary
*.ico binary
*.svg binary
*.pdf binary
*.mat binary
*.npy binary
*.npz binary
*.h5 binary
*.hdf5 binary
*.pkl binary
*.pickle binary
*.so binary
*.pyd binary
*.dylib binary
*.dll binary
*.gz binary
*.bz2 binary
*.xz binary
*.zip binary

# ---------------------------------------------------------------------------
# GitHub Linguist — keep language stats focused on the library source
# ---------------------------------------------------------------------------
docs/** linguist-documentation
examples/** linguist-documentation
*.ipynb linguist-documentation
changelog.md linguist-documentation

# ---------------------------------------------------------------------------
# git archive / source exports — drop dev-only paths
# ---------------------------------------------------------------------------
.github/ export-ignore
.gitattributes export-ignore
.gitignore export-ignore
.claudeignore export-ignore
.claude/ export-ignore
.idea/ export-ignore
dev/ export-ignore
develop/ export-ignore
138 changes: 69 additions & 69 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -1,70 +1,70 @@
---
name: Bug Report
about: Report a bug or unexpected behavior to help us improve brainpy.state
title: '[BUG] '
labels: bug
assignees: ''
---
## Bug Description
**Describe the bug**
A clear and concise description of what the bug is.
## To Reproduce
**Minimal code example to reproduce the issue:**
```python
import brainpy
# Your code here that demonstrates the bug
```
**Steps to reproduce:**
1.
2.
3.
## Expected Behavior
What you expected to happen.
## Actual Behavior
What actually happened. Include the full error message and traceback if applicable.
```
Paste error message/traceback here
```
## Environment
Please provide the following information:
- **brainpy.state Version:** [e.g., 0.0.1]
- **Python Version:** [e.g., 3.10.5]
- **JAX Version:** [e.g., 0.4.30]
- **Operating System:** [e.g., Ubuntu 22.04, macOS 13.0, Windows 11]
- **Hardware:** [e.g., CPU only, CUDA GPU, TPU]
- **Installation method:** [e.g., pip, conda, from source]
**Additional context:**
```python
import brainpy
print(brainpy_state.__version__)
# Add any other relevant version info
```
## Additional Context
Add any other context about the problem here (e.g., related issues, potential causes, attempted solutions).
## Checklist
- [ ] I have checked for duplicate issues
- [ ] I have provided a minimal code example to reproduce the bug
- [ ] I have included the full error message/traceback
---
name: Bug Report
about: Report a bug or unexpected behavior to help us improve brainpy.state
title: '[BUG] '
labels: bug
assignees: ''
---

## Bug Description

**Describe the bug**
A clear and concise description of what the bug is.

## To Reproduce

**Minimal code example to reproduce the issue:**

```python
import brainpy

# Your code here that demonstrates the bug
```

**Steps to reproduce:**
1.
2.
3.

## Expected Behavior

What you expected to happen.

## Actual Behavior

What actually happened. Include the full error message and traceback if applicable.

```
Paste error message/traceback here
```

## Environment

Please provide the following information:

- **brainpy.state Version:** [e.g., 0.0.1]
- **Python Version:** [e.g., 3.10.5]
- **JAX Version:** [e.g., 0.4.30]
- **Operating System:** [e.g., Ubuntu 22.04, macOS 13.0, Windows 11]
- **Hardware:** [e.g., CPU only, CUDA GPU, TPU]
- **Installation method:** [e.g., pip, conda, from source]

**Additional context:**

```python
import brainpy

print(brainpy_state.__version__)
# Add any other relevant version info
```

## Additional Context

Add any other context about the problem here (e.g., related issues, potential causes, attempted solutions).

## Checklist

- [ ] I have checked for duplicate issues
- [ ] I have provided a minimal code example to reproduce the bug
- [ ] I have included the full error message/traceback
- [ ] I have provided environment information
22 changes: 11 additions & 11 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
blank_issues_enabled: true
contact_links:
- name: 📚 Documentation
url: https://brainx.chaobrain.com/brainpy-state/
about: Check the documentation for guides, tutorials, and API reference
- name: 💬 GitHub Discussions
url: https://github.com/chaobrain/brainpy.state/discussions
about: Ask questions and discuss ideas with the community
- name: 🔒 Security Vulnerability
url: https://github.com/chaobrain/brainpy.state/security/advisories/new
about: Report security vulnerabilities privately (do not create public issues)
blank_issues_enabled: true
contact_links:
- name: 📚 Documentation
url: https://brainx.chaobrain.com/brainpy-state/
about: Check the documentation for guides, tutorials, and API reference
- name: 💬 GitHub Discussions
url: https://github.com/chaobrain/brainpy.state/discussions
about: Ask questions and discuss ideas with the community
- name: 🔒 Security Vulnerability
url: https://github.com/chaobrain/brainpy.state/security/advisories/new
about: Report security vulnerabilities privately (do not create public issues)
116 changes: 58 additions & 58 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -1,58 +1,58 @@
---
name: Feature Request
about: Suggest a new idea or improvement for brainpy.state
title: '[FEATURE] '
labels: enhancement
assignees: ''
---
## Feature Description
**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
**Describe the solution you'd like**
A clear and concise description of what you want to happen.
## Motivation and Use Case
**Why is this feature important?**
Explain the motivation for this feature and who would benefit from it.
**Example use case:**
```python
import brainpy
# Example code showing how you would like to use this feature
# This helps us understand your vision
```
## Proposed Implementation (Optional)
**How do you envision this working?**
If you have ideas about how this could be implemented, share them here.
**API design (if applicable):**
```python
# Proposed API or interface
```
## Alternatives Considered
**What alternatives have you considered?**
Describe alternative solutions or features you've considered and why they don't fully address your needs.
## Additional Context
Add any other context, screenshots, references to related work, or examples from other libraries.
**Related issues/PRs:**
- #issue_number
## Checklist
- [ ] I have checked for duplicate feature requests
- [ ] I have provided a clear use case and motivation
- [ ] I have described the desired behavior
- [ ] I have considered and described alternatives
---
name: Feature Request
about: Suggest a new idea or improvement for brainpy.state
title: '[FEATURE] '
labels: enhancement
assignees: ''
---

## Feature Description

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

## Motivation and Use Case

**Why is this feature important?**
Explain the motivation for this feature and who would benefit from it.

**Example use case:**

```python
import brainpy

# Example code showing how you would like to use this feature
# This helps us understand your vision
```

## Proposed Implementation (Optional)

**How do you envision this working?**
If you have ideas about how this could be implemented, share them here.

**API design (if applicable):**
```python
# Proposed API or interface
```

## Alternatives Considered

**What alternatives have you considered?**
Describe alternative solutions or features you've considered and why they don't fully address your needs.

## Additional Context

Add any other context, screenshots, references to related work, or examples from other libraries.

**Related issues/PRs:**
- #issue_number

## Checklist

- [ ] I have checked for duplicate feature requests
- [ ] I have provided a clear use case and motivation
- [ ] I have described the desired behavior
- [ ] I have considered and described alternatives
Loading
Loading