From d3c1ebd3112ac0596fc58f070c5680c0201ef3ac Mon Sep 17 00:00:00 2001 From: HaeryangKim Date: Thu, 5 Dec 2024 14:44:16 +0900 Subject: [PATCH] Refactor and improve code readability, error handling, and logging - **camera_widget.py**: - Improved variable initialization with comments for clarity. - Enhanced logging using `self.draw_command_output` for major actions. - Refactored error handling in tab addition, removal, camera connection, and disconnection. - Added feedback messages for better user interaction. - **main.py**: - Added detailed logs for UI setup, camera addition, and removal. - Refactored the `draw_logo` method with exception handling and logs. - Improved stylesheet loading with error handling and default fallback. - **processor_widget.py**: - Documented initialization and method purposes with inline comments. - Enhanced logs and error handling in point cloud saving, loading, and processing. - Added input validation checks for missing camera, settings, or source. - **qtThread.py**: - Refactored threads with improved documentation and consistent error signals. - Added detailed logs using `self.handle_camera_output`. - Implemented robust error handling for camera discovery, connection, source capture, target capture, and disconnection. - **visulization.py**: - Improved error handling in Open3D viewer setup and rendering updates. - Added QMessageBox alerts for critical errors in visualization. - Enhanced example usage with proper exception handling. - Overall improvements: - Consistent use of single-line comments (`#`) instead of docstrings for inline explanations. - Enhanced user feedback with detailed logs and exception handling for all modules. - Maintained consistent coding style and error messages across the project. --- twqe | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/twqe b/twqe index 940ba53..8741e49 100644 --- a/twqe +++ b/twqe @@ -1,3 +1,5 @@ sdsa qwe -sdsasda \ No newline at end of file +sdsasda + +asdsad