@@ -20,8 +20,8 @@ def test_ffd_iges_pipe_mod_through_files(self):
2020 ffd ('tests/test_datasets/test_pipe.iges' , 'test_pipe_result.iges' )
2121 with open ('test_pipe_result.iges' , "r" ) as created , \
2222 open ('tests/test_datasets/test_pipe_out_true.iges' , "r" ) as reference :
23- ref = reference .readlines ()[5 :]
24- cre = created .readlines ()[5 :]
23+ ref = [ line for line in reference .readlines ()[5 :] if line . strip () ]
24+ cre = [ line for line in created .readlines ()[5 :] if line . strip () ]
2525 self .assertEqual (len (ref ),len (cre ))
2626 for i in range (len (cre )):
2727 ref_ = np .asarray (ref [i ].split (',' )[:- 1 ], dtype = float )
@@ -39,8 +39,8 @@ def test_ffd_iges_pipe_mod_through_topods_shape(self):
3939 CADDeformation .write_shape ('test_pipe_hollow_result.iges' , mod_shape )
4040 with open ('test_pipe_hollow_result.iges' , "r" ) as created , \
4141 open ('tests/test_datasets/test_pipe_hollow_out_true.iges' , "r" ) as reference :
42- ref = reference .readlines ()[5 :]
43- cre = created .readlines ()[5 :]
42+ ref = [ line for line in reference .readlines ()[5 :] if line . strip () ]
43+ cre = [ line for line in created .readlines ()[5 :] if line . strip () ]
4444 self .assertEqual (len (ref ),len (cre ))
4545 for i in range (len (cre )):
4646 ref_ = np .asarray (ref [i ].split (',' )[:- 1 ], dtype = float )
0 commit comments