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/__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" 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)}." )