File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 5
5
import tempfile
6
6
import numpy as np
7
7
8
- import manim
9
8
from manim import config , file_writer_config , logger
10
9
11
10
@@ -43,11 +42,14 @@ def set_test_scene(scene_object, module_name):
43
42
scene .render ()
44
43
data = scene .renderer .get_frame ()
45
44
45
+ assert not np .all (
46
+ data == np .array ([0 , 0 , 0 , 255 ])
47
+ ), f"Control data generated for { str (scene )} only contains empty pixels."
48
+ assert data .shape == (480 , 854 , 4 )
46
49
tests_directory = os .path .dirname (os .path .dirname (os .path .abspath (__file__ )))
47
50
path_control_data = os .path .join (
48
51
tests_directory , "control_data" , "graphical_units_data"
49
52
)
50
- print (path_control_data )
51
53
path = os .path .join (path_control_data , module_name )
52
54
if not os .path .isdir (path ):
53
55
os .makedirs (path )
You can’t perform that action at this time.
0 commit comments