Skip to content

Commit

Permalink
0.0.5, change callback param from str to List
Browse files Browse the repository at this point in the history
  • Loading branch information
dulingkang committed Nov 30, 2022
1 parent 99b8e78 commit 8e258ec
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion bpl/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
__version__ = "0.0.3"
__version__ = "0.0.5"

from . import respa
from .respa import *
Expand Down
12 changes: 8 additions & 4 deletions examples/callback.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
import sys
sys.path.append('../')

import bpl
import brainpy as bp
from typing import List, Tuple


class MyNetwork(bpl.Network):
Expand All @@ -25,12 +29,12 @@ def __init__(self, *ds_tuple):
monitors.update(monitor_volt)


def spike(s: str):
print(s)
def spike(a: List[Tuple[int, float]]):
print(a)


def volt(s: str):
print(s)
def volt(a: List[Tuple[int, float, float]]):
print(a)


runner = bpl.DSRunner(
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
author_email='[email protected]',
packages=packages,
python_requires='>=3.7',
install_requires=['numpy>=1.15', 'jax>=0.3.0', 'tqdm', 'brainpy',
install_requires=['numpy>=1.15', 'tqdm', 'brainpy',
'brainpylib', 'numba', 'mpi4py', 'mpi4jax', 'jax[cpu]==0.3.24'],
url='https://github.com/NH-NCL/brainpy-largescale',
project_urls={
Expand Down

0 comments on commit 8e258ec

Please sign in to comment.