@@ -62,12 +62,8 @@ def test_class_members_default_rotation_matrix(self):
6262
6363 def test_class_members_default_position_vertices (self ):
6464 params = FFDParameters ()
65- expected_matrix = np .array ([
66- [0. , 0. , 0. ],
67- [1. , 0. , 0. ],
68- [0. , 1. , 0. ],
69- [0. , 0. , 1. ]
70- ])
65+ expected_matrix = np .array ([[0. , 0. , 0. ], [1. , 0. , 0. ], [0. , 1. , 0. ],
66+ [0. , 0. , 1. ]])
7167 np .testing .assert_array_almost_equal (params .position_vertices ,
7268 expected_matrix )
7369
@@ -177,12 +173,10 @@ def test_read_parameters_position_vertex_0_origin(self):
177173 def test_read_parameters_position_vertex_0 (self ):
178174 params = FFDParameters (n_control_points = [3 , 2 , 2 ])
179175 params .read_parameters ('tests/test_datasets/parameters_sphere.prm' )
180- position_vertices = np .array ([
181- [- 20.0 , - 55.0 , - 45.0 ],
182- [24.17322326 , - 52.02107006 , - 53.05309404 ],
183- [- 20. , 29.41000412 , - 13.77579136 ],
184- [- 2.82719042 , - 85.65053198 , 37.85915459 ]
185- ])
176+ position_vertices = np .array (
177+ [[- 20.0 , - 55.0 , - 45.0 ], [24.17322326 , - 52.02107006 , - 53.05309404 ],
178+ [- 20. , 29.41000412 ,
179+ - 13.77579136 ], [- 2.82719042 , - 85.65053198 , 37.85915459 ]])
186180
187181 np .testing .assert_array_almost_equal (params .position_vertices ,
188182 position_vertices )
@@ -260,22 +254,14 @@ def test_build_bounding_box_2(self):
260254 params = FFDParameters ()
261255 params .build_bounding_box (cube )
262256
263- expected_matrix = np .array ([
264- [0. , 0. , 0. ],
265- [1. , 0. , 0. ],
266- [0. , 1. , 0. ],
267- [0. , 0. , 1. ]
268- ])
257+ expected_matrix = np .array ([[0. , 0. , 0. ], [1. , 0. , 0. ], [0. , 1. , 0. ],
258+ [0. , 0. , 1. ]])
269259 np .testing .assert_almost_equal (
270260 params .position_vertices , expected_matrix , decimal = 5 )
271261
272262 def test_set_position_of_vertices (self ):
273- expected_matrix = np .array ([
274- [0. , 0. , 0. ],
275- [1. , 0. , 0. ],
276- [0. , 1. , 0. ],
277- [0. , 0. , 1. ]
278- ])
263+ expected_matrix = np .array ([[0. , 0. , 0. ], [1. , 0. , 0. ], [0. , 1. , 0. ],
264+ [0. , 0. , 1. ]])
279265 tops = np .array ([1. , 1. , 1. ])
280266 params = FFDParameters ()
281267 params .origin_box = expected_matrix [0 ]
0 commit comments