Code cleanup (#234)

This commit is contained in:
Matthew Tancik authored and GitHub committed 2022-07-31 18:22:57 -07:00
1 parent 8b414bafab
commit e35781fe85
14 files changed
+46 -68

No files matched your search

+1 -1
View File
@@ -48,7 +48,7 @@ def test_broadcasting():
assert tensor_dataclass.b.shape == (4, 6, 2)
a = torch.ones((4, 6, 3))
b = torch.ones((2))
b = torch.ones(2)
tensor_dataclass = TestTensorDataclass(a=a, b=b)
assert tensor_dataclass.b.shape == (4, 6, 2)
+2 -2
View File
@@ -71,7 +71,7 @@ def test_drawing():
v["random"].set_transform(get_translation_matrix([-0.5, -0.5, 0]))
v = vis["lines"]
v.set_transform(get_translation_matrix(([-2, -3, 0])))
v.set_transform(get_translation_matrix([-2, -3, 0]))
vertices = np.random.random((3, 10)).astype(np.float32)
v["line_segments"].set_object(g.LineSegments(g.PointsGeometry(vertices)))
@@ -104,7 +104,7 @@ def test_drawing():
g.LineBasicMaterial(vertexColors=True),
)
)
v["triad"].set_transform(get_translation_matrix(([0, 5, 0])))
v["triad"].set_transform(get_translation_matrix([0, 5, 0]))
v["triad_function"].set_object(g.triad(0.5))
v["triad_function"].set_transform(get_translation_matrix([0, 6, 0]))