Skip to content

Commit

Permalink
Merge pull request #56 from ch-sa/ch-sa/fix-path
Browse files Browse the repository at this point in the history
Fix icon point cloud path
  • Loading branch information
ch-sa authored Jan 23, 2022
2 parents 21f6ad6 + d3cbec9 commit 0307277
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion labelCloud/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.7.1"
__version__ = "0.7.2"
8 changes: 5 additions & 3 deletions labelCloud/control/pcd_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,10 @@ def read_pointcloud_folder(self) -> None:
"Please set the point cloud folder to a location that contains point cloud files."
)
self.pointcloud = self.load_pointcloud(
pkg_resources.resource_filename(
"labelCloud.resources", "labelCloud_icon.pcd"
Path(
pkg_resources.resource_filename(
"labelCloud.resources", "labelCloud_icon.pcd"
)
)
)
self.update_pcd_infos(pointcloud_label=" – (select folder!)")
Expand Down Expand Up @@ -160,7 +162,7 @@ def save_current_perspective(self, active: bool = True) -> None:
logging.info("Reset saved perspective.")

# MANIPULATOR
def load_pointcloud(self, path_to_pointcloud: str) -> PointCloud:
def load_pointcloud(self, path_to_pointcloud: Path) -> PointCloud:
start_section(f"Loading {path_to_pointcloud.name}")

if config.getboolean("USER_INTERFACE", "keep_perspective"):
Expand Down

0 comments on commit 0307277

Please sign in to comment.