1919 print (file )
2020 sys .exit (1 )
2121
22- # getting the test data paths
23- def debug_directory_contents (path ):
24- print (f"Checking contents of directory: { path } " )
25- if os .path .exists (path ):
26- for file in os .listdir (path ):
27- print (file )
28- else :
29- print (f"Directory does not exist: { path } " )
22+ # # getting the test data paths
23+ # def debug_directory_contents(path):
24+ # print(f"Checking contents of directory: {path}")
25+ # if os.path.exists(path):
26+ # for file in os.listdir(path):
27+ # print(file)
28+ # else:
29+ # print(f"Directory does not exist: {path}")
3030
3131def get_ply_cloud_roof_quarter_path ():
3232 base_test_data_dir = os .getenv ('DF_TEST_DATA_DIR' , os .path .abspath (os .path .join (os .path .dirname (__file__ ), '..' , '..' , 'test_data' )))
@@ -35,9 +35,9 @@ def get_ply_cloud_roof_quarter_path():
3535 raise FileNotFoundError (f"PLY file not found at: { ply_file_path } " )
3636 print (f"base_test_data_dir: { base_test_data_dir } " ) # Debug
3737 print (f"ply_file_path: { ply_file_path } " ) # Debug
38- debug_directory_contents (base_test_data_dir )
39- with open (ply_file_path , 'r' ) as file :
40- print (file .read ()) # Print file contents for debugging
38+ # debug_directory_contents(base_test_data_dir)
39+ # with open(ply_file_path, 'r') as file:
40+ # print(file.read()) # Print file contents for debugging
4141 return ply_file_path
4242
4343#------------------------------------------------------------------------------
@@ -112,7 +112,7 @@ def test_DFPointCloud_compute_normals(create_DFPointCloudSampleRoof):
112112def test_DFPointCloud_get_tight_bounding_box (create_DFPointCloudSampleRoof ):
113113 pc = create_DFPointCloudSampleRoof
114114 obb = pc .get_tight_bounding_box ()
115- assert obb [0 ][0 ] == 0.1955568830111371 , "The min x of the OBB should be 0.1955568830111371 "
115+ assert obb [0 ][0 ] == 0.1955558282162114 , "The min x of the OBB should be 0.1955558282162114 "
116116
117117# TODO: to implement DFMesh tests
118118def test_DFMesh_init ():
0 commit comments