-
Notifications
You must be signed in to change notification settings - Fork 4.9k
basic calibration tests #14166
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
basic calibration tests #14166
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds basic calibration tests for Intel RealSense devices, implementing tests for both On-Chip Calibration (OCC) and Tare calibration flows with various configurations including host assistance modes.
- Implements calibration test framework with OCC and Tare calibration support
- Adds target distance calculation functionality for Tare calibration
- Creates four distinct test cases covering different calibration scenarios
| if occ_json_file is not None: | ||
| try: | ||
| occ_json = open(occ_json_file).read() | ||
| except: |
Copilot
AI
Jul 27, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Using bare 'except:' clause is not recommended. Specify the exception type(s) you want to catch, such as 'except (IOError, OSError):'.
| except: | |
| except (FileNotFoundError, IOError): |
Copilot uses AI. Check for mistakes.
| if tare_json_file is not None: | ||
| try: | ||
| tare_json = open(tare_json_file).read() | ||
| except: |
Copilot
AI
Jul 27, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Using bare 'except:' clause is not recommended. Specify the exception type(s) you want to catch, such as 'except (IOError, OSError):'.
| except: | |
| except (IOError, OSError): |
Copilot uses AI. Check for mistakes.
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
b87be16 to
3c7dce4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For stage 1 looks OK
Did not go over commented stage 2 code. Should be reviewed when relevant.
No description provided.