From 1e6309f70e36833f18fc3b2567e02ad08db91ebf Mon Sep 17 00:00:00 2001 From: ch-sa Date: Mon, 11 Jul 2022 23:32:41 +0200 Subject: [PATCH 1/2] Small improvements - update no point cloud dialog to show absolute path - set default parameter for point cloud loader Closes: #86 --- .gitignore | 4 ---- labelCloud/model/point_cloud.py | 8 ++++++-- labelCloud/view/gui.py | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.gitignore b/.gitignore index 5a4c7bb..a81886b 100644 --- a/.gitignore +++ b/.gitignore @@ -163,10 +163,6 @@ cython_debug/ ### VisualStudioCode ### .vscode/* -!.vscode/settings.json -!.vscode/tasks.json -!.vscode/launch.json -!.vscode/extensions.json *.code-workspace # Local History for Visual Studio Code diff --git a/labelCloud/model/point_cloud.py b/labelCloud/model/point_cloud.py index 88cfe35..2077c71 100644 --- a/labelCloud/model/point_cloud.py +++ b/labelCloud/model/point_cloud.py @@ -3,9 +3,10 @@ from pathlib import Path from typing import List, Optional, Tuple +import pkg_resources + import numpy as np import OpenGL.GL as GL -import pkg_resources from . import Perspective from ..control.config_manager import config @@ -98,7 +99,10 @@ def __init__( @classmethod def from_file( - cls, path: Path, perspective: Optional[Perspective], write_buffer: bool = True + cls, + path: Path, + perspective: Optional[Perspective] = None, + write_buffer: bool = True, ) -> "PointCloud": init_translation, init_rotation = (None, None) if perspective: diff --git a/labelCloud/view/gui.py b/labelCloud/view/gui.py index c4b4714..d125093 100644 --- a/labelCloud/view/gui.py +++ b/labelCloud/view/gui.py @@ -470,7 +470,7 @@ def show_no_pointcloud_dialog( "specified folder." ) msg.setInformativeText( - f"Please copy all your point clouds into {pcd_folder} or change " + f"Please copy all your point clouds into {pcd_folder.resolve()} or update " "the point cloud folder location. labelCloud supports the following point " f"cloud file formats:\n {', '.join(pcd_extensions)}." ) From 757a2c4d62bf3cf534934aa2550737649a42a49b Mon Sep 17 00:00:00 2001 From: ch-sa Date: Mon, 11 Jul 2022 23:39:42 +0200 Subject: [PATCH 2/2] bump version --- labelCloud/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/labelCloud/__init__.py b/labelCloud/__init__.py index 4e27eed..894cebc 100644 --- a/labelCloud/__init__.py +++ b/labelCloud/__init__.py @@ -1 +1 @@ -__version__ = "0.7.7" +__version__ = "0.7.8"