Skip to content

Conversation

alexk1976
Copy link

No description provided.

@alexk1976 alexk1976 requested review from Nir-Az and Copilot July 27, 2025 14:23
@alexk1976 alexk1976 added the ai-assist AI was used to develop this feature label Jul 27, 2025
Copy link

@Copilot Copilot AI left a 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:
Copy link

Copilot AI Jul 27, 2025

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):'.

Suggested change
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:
Copy link

Copilot AI Jul 27, 2025

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):'.

Suggested change
except:
except (IOError, OSError):

Copilot uses AI. Check for mistakes.

@alexk1976 alexk1976 requested a review from OhadMeir July 28, 2025 14:33
@alexk1976 alexk1976 requested a review from OhadMeir August 12, 2025 12:40
Copy link
Contributor

@OhadMeir OhadMeir left a 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.

@alexk1976 alexk1976 merged commit 2be5902 into IntelRealSense:development Aug 13, 2025
26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ai-assist AI was used to develop this feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants