From 1b155b861eba106eb4a12522ce083b4c450bb1e3 Mon Sep 17 00:00:00 2001 From: Julian Arkenau Date: Tue, 18 Oct 2022 09:55:40 +0000 Subject: [PATCH] add precision for numpy output in point cloud examples --- examples/python/gRPC/pointcloud/gRPC_fb_queryPointCloud.py | 2 ++ examples/python/gRPC/pointcloud/gRPC_fb_sendPointCloud.py | 2 ++ 2 files changed, 4 insertions(+) diff --git a/examples/python/gRPC/pointcloud/gRPC_fb_queryPointCloud.py b/examples/python/gRPC/pointcloud/gRPC_fb_queryPointCloud.py index 1f576602d..59d4df128 100644 --- a/examples/python/gRPC/pointcloud/gRPC_fb_queryPointCloud.py +++ b/examples/python/gRPC/pointcloud/gRPC_fb_queryPointCloud.py @@ -4,6 +4,8 @@ import flatbuffers import numpy as np + +np.set_printoptions(precision=7) from fb import point_cloud_service_grpc_fb as pointCloudService from fb.PointCloud2 import PointCloud2 diff --git a/examples/python/gRPC/pointcloud/gRPC_fb_sendPointCloud.py b/examples/python/gRPC/pointcloud/gRPC_fb_sendPointCloud.py index 788eb96ed..b209a00b2 100755 --- a/examples/python/gRPC/pointcloud/gRPC_fb_sendPointCloud.py +++ b/examples/python/gRPC/pointcloud/gRPC_fb_sendPointCloud.py @@ -7,6 +7,8 @@ import flatbuffers import numpy as np + +np.set_printoptions(precision=7) from fb import PointCloud2 from fb import point_cloud_service_grpc_fb as pointCloudService