Skip to content

Commit 327d7ba

Browse files
committed
WIP: testing reading absolute paht for ply
1 parent f114f8f commit 327d7ba

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/integration_tests/pybinds_tests/test_pybind_units.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,9 @@ def test_DFPointCloud_init():
4444
def test_DFPointCloud_load_from_PLY():
4545
pc = dfb.dfb_geometry.DFPointCloud()
4646
# pc.load_from_PLY(get_ply_cloud_roof_quarter_path())
47-
pc.load_from_PLY(os.path.join(os.path.dirname(__file__), "./roof_quarter.ply"))
47+
path_raw = os.path.join(os.path.dirname(__file__), "./roof_quarter.ply")
48+
abs_path = os.path.abspath(path_raw)
49+
pc.load_from_PLY(abs_path)
4850

4951
assert pc.points.__len__() == 7379, "DFPointCloud should have 7379 points"
5052
assert pc.normals.__len__() == 7379, "DFPointCloud should have 7379 normals"

0 commit comments

Comments
 (0)