diff --git a/brainpy/_src/dyn/synapses/delay_couplings.py b/brainpy/_src/dyn/synapses/delay_couplings.py index ef43139da..8a848e646 100644 --- a/brainpy/_src/dyn/synapses/delay_couplings.py +++ b/brainpy/_src/dyn/synapses/delay_couplings.py @@ -64,7 +64,7 @@ def __init__( self.output_var = var_to_output # Connection matrix - self.conn_mat = bm.asarray(conn_mat) + self.conn_mat = conn_mat if self.conn_mat.shape != required_shape: raise ValueError(f'we expect the structural connection matrix has the shape of ' f'(pre.num, post.num), i.e., {required_shape}, ' diff --git a/brainpy/_src/math/event/tests/test_event_csrmv_taichi.py b/brainpy/_src/math/event/tests/test_event_csrmv_taichi.py index bacf4076a..3bf4efda3 100644 --- a/brainpy/_src/math/event/tests/test_event_csrmv_taichi.py +++ b/brainpy/_src/math/event/tests/test_event_csrmv_taichi.py @@ -13,10 +13,6 @@ # pytestmark = pytest.mark.skip(reason="Skipped due to pytest limitations, manual execution required for testing.") -is_manual_test = False -if sys.platform.startswith('darwin') and not is_manual_test: - pytest.skip('brainpy.math package may need manual tests.', allow_module_level=True) - # bm.set_platform('cpu') seed = 1234 diff --git a/brainpy/_src/math/jitconn/tests/test_event_matvec_taichi.py b/brainpy/_src/math/jitconn/tests/test_event_matvec_taichi.py index 8d03fe1e6..e42434e95 100644 --- a/brainpy/_src/math/jitconn/tests/test_event_matvec_taichi.py +++ b/brainpy/_src/math/jitconn/tests/test_event_matvec_taichi.py @@ -1,18 +1,12 @@ # -*- coding: utf-8 -*- -import sys import jax import jax.numpy as jnp -import pytest from absl.testing import parameterized import brainpy.math as bm -is_manual_test = False -if sys.platform.startswith('darwin') and not is_manual_test: - pytest.skip('brainpy.math package may need manual tests.', allow_module_level=True) - shapes = [(100, 200), (10, 1000), (2, 1000), (1000, 10), (1000, 2)] shapes = [(100, 200), (2, 1000), (1000, 2)] diff --git a/brainpy/_src/math/jitconn/tests/test_matvec_taichi.py b/brainpy/_src/math/jitconn/tests/test_matvec_taichi.py index eb56b0bee..e07e3db32 100644 --- a/brainpy/_src/math/jitconn/tests/test_matvec_taichi.py +++ b/brainpy/_src/math/jitconn/tests/test_matvec_taichi.py @@ -1,18 +1,12 @@ # -*- coding: utf-8 -*- -import sys import jax import jax.numpy as jnp -import pytest from absl.testing import parameterized import brainpy.math as bm -is_manual_test = False -if sys.platform.startswith('darwin') and not is_manual_test: - pytest.skip('brainpy.math package may need manual tests.', allow_module_level=True) - shapes = [(100, 200), (10, 1000), (2, 1000), (1000, 10), (1000, 2)] shapes = [(100, 200), (2, 1000), (1000, 2)] diff --git a/brainpy/_src/math/op_register/tests/test_taichi_based.py b/brainpy/_src/math/op_register/tests/test_taichi_based.py index 14ee77a81..9ba9b4459 100644 --- a/brainpy/_src/math/op_register/tests/test_taichi_based.py +++ b/brainpy/_src/math/op_register/tests/test_taichi_based.py @@ -8,8 +8,8 @@ bm.set_platform('cpu') -if not platform.platform().startswith('Windows'): - pytest.skip(allow_module_level=True) +# if not platform.platform().startswith('Windows'): +# pytest.skip(allow_module_level=True) # @ti.kernel diff --git a/brainpy/_src/math/sparse/tests/test_csrmv_taichi.py b/brainpy/_src/math/sparse/tests/test_csrmv_taichi.py index 1c603da01..2b3d7b5b0 100644 --- a/brainpy/_src/math/sparse/tests/test_csrmv_taichi.py +++ b/brainpy/_src/math/sparse/tests/test_csrmv_taichi.py @@ -1,22 +1,13 @@ # -*- coding: utf-8 -*- -import sys from functools import partial import jax -import pytest from absl.testing import parameterized import brainpy as bp import brainpy.math as bm -# pytestmark = pytest.mark.skip(reason="Skipped due to pytest limitations, manual execution required for testing.") - - -is_manual_test = False -if sys.platform.startswith('darwin') and not is_manual_test: - pytest.skip('brainpy.math package may need manual tests.', allow_module_level=True) - # bm.set_platform('gpu') seed = 1234