Skip to content

Commit

Permalink
minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mstimberg committed Sep 13, 2024
1 parent 3097569 commit f1ea1b5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion brian2/codegen/runtime/numpy_rt/numpy_rt.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def __iter__(self):
return iter(self.indices)

# Allow conversion to a proper array with np.array(...)
def __array__(self, dtype=None, copy=None):
def __array__(self, dtype=np.int32, copy=None):
if copy is False:
raise ValueError("LazyArange does not support copy=False")
if self.indices is None:
Expand Down
1 change: 0 additions & 1 deletion brian2/tests/test_subgroup.py
Original file line number Diff line number Diff line change
Expand Up @@ -951,7 +951,6 @@ def test_run_regularly():

@pytest.mark.standalone_compatible
def test_spike_monitor():
set_device("cpp_standalone", directory="/tmp/testsubgroup")
G = NeuronGroup(10, "v:1", threshold="v>1", reset="v=0")
G.v[[0, 2, 5]] = 1.1
SG = G[3:]
Expand Down

0 comments on commit f1ea1b5

Please sign in to comment.