Skip to content

Commit

Permalink
change np.product to np.prod
Browse files Browse the repository at this point in the history
  • Loading branch information
biphasic committed Jul 10, 2024
1 parent fe4ecf4 commit 86ad1c4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions test/test_tonic_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,13 @@ def test_pytorch_batch_collation_dense_tensor():
assert batch.shape[2] == sensor_size[2]


@pytest.mark.skipif(not platform == "linux", reason="Test doesn't finish on Windows.")
@pytest.mark.skipif(platform == "win32", reason="Test doesn't finish on Windows.")
def test_plotting():
events, sensor_size = create_random_input()
tonic.utils.plot_event_grid(events)


@pytest.mark.skipif(not platform == "linux", reason="Test doesn't finish on Windows.")
@pytest.mark.skipif(platform == "win32", reason="Test doesn't finish on Windows.")
def test_animation():
events, sensor_size = create_random_input()

Expand Down
2 changes: 1 addition & 1 deletion tonic/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def plot_event_grid(
sensor_size = (sensor_size_x, sensor_size_y, sensor_size_p)

transform = transforms.ToFrame(
sensor_size=sensor_size, n_time_bins=np.product(axis_array)
sensor_size=sensor_size, n_time_bins=np.prod(axis_array)
)

frames = transform(events)
Expand Down

0 comments on commit 86ad1c4

Please sign in to comment.