Skip to content

Commit 0b10133

Browse files
committed
length provided
1 parent 8bc5ec1 commit 0b10133

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

test/test_example_provider.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ def test_pytorch_dataset():
378378
np.testing.assert_allclose(labels[1], 6.05)
379379
np.testing.assert_allclose(labels[-1], 0.162643)
380380

381-
center, coords, types, radii, labels = m[-1]
381+
lengths, center, coords, types, radii, labels = m[-1]
382382
assert labels[0] == 0
383383
np.testing.assert_allclose(labels[1], -10.3)
384384

@@ -396,7 +396,7 @@ def test_pytorch_dataset():
396396
assert radii.shape[0] == 8
397397
assert labels.shape[0] == 8
398398

399-
mcenter, mcoords, mtypes, mradii, mlabels = m[10]
399+
mlengths, mcenter, mcoords, mtypes, mradii, mlabels = m[10]
400400
np.testing.assert_allclose(center[2], mcenter)
401401
np.testing.assert_allclose(coords[2][:lengths[2]], mcoords)
402402
np.testing.assert_allclose(types[2][:lengths[2]], mtypes)

0 commit comments

Comments
 (0)