Skip to content

basic calibration tests - #14166

Merged
alexkunin-gh merged 8 commits into
realsenseai:developmentfrom
alexkunin-gh:akunin/test_calib
Aug 13, 2025
Merged

basic calibration tests#14166
alexkunin-gh merged 8 commits into
realsenseai:developmentfrom
alexkunin-gh:akunin/test_calib

Conversation

@alexkunin-gh

Copy link
Copy Markdown
Contributor

No description provided.

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

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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

Comment thread unit-tests/live/calib/test-calibrations.py Outdated
if occ_json_file is not None:
try:
occ_json = open(occ_json_file).read()
except:

Copilot AI Jul 27, 2025

Copy link

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:

Copilot AI Jul 27, 2025

Copy link

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.
Comment thread unit-tests/live/calib/test-calibrations.py Outdated
Comment thread unit-tests/live/calib/test-calibrations.py Outdated
@alexkunin-gh
alexkunin-gh requested a review from OhadMeir July 28, 2025 14:33
Comment thread unit-tests/live/calib/test-calibrations.py Outdated
Comment thread unit-tests/live/calib/test-calibrations.py Outdated
Comment thread unit-tests/live/calib/test-calibrations.py Outdated
Comment thread unit-tests/live/calib/test-calibrations.py Outdated
Comment thread unit-tests/live/calib/test-calibrations.py Outdated
Comment thread unit-tests/live/calib/test-calibrations.py Outdated
Comment thread unit-tests/live/calib/test-calibrations.py Outdated
Comment thread unit-tests/live/calib/test-calibrations.py Outdated
Comment thread unit-tests/live/calib/test-calibrations.py Outdated
Comment thread unit-tests/live/calib/test-calibrations.py Outdated
Comment thread unit-tests/live/calib/test-calibrations.py Outdated
Comment thread unit-tests/live/calib/test-calibrations.py Outdated
Comment thread unit-tests/live/calib/test-calibrations.py Outdated
Alex Kunin and others added 6 commits August 8, 2025 17:42
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Comment thread unit-tests/live/calib/test_calibrations_common.py Outdated
Comment thread unit-tests/live/calib/test_calibrations_common.py Outdated
Comment thread unit-tests/live/calib/test_calibrations_common.py Outdated
Comment thread unit-tests/live/calib/test_occ_calibrations.py
Comment thread unit-tests/live/calib/test_occ_calibrations.py
Comment thread unit-tests/live/calib/test_occ_calibrations.py Outdated
Comment thread unit-tests/live/calib/test_occ_calibrations.py Outdated
Comment thread unit-tests/live/calib/test_calibrations_common.py Outdated
Comment thread unit-tests/live/calib/test_calibrations_common.py Outdated
Comment thread unit-tests/live/calib/test_calibrations_common.py Outdated
Comment thread unit-tests/live/calib/test_calibrations_common.py Outdated
Comment thread unit-tests/live/calib/test_calibrations_common.py
Comment thread unit-tests/live/calib/test_occ_calibrations.py Outdated
Comment thread unit-tests/live/calib/test_tare_calibrations.py Outdated
@alexkunin-gh
alexkunin-gh requested a review from OhadMeir August 12, 2025 12:40

@OhadMeir OhadMeir left a comment

Copy link
Copy Markdown
Contributor

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.

@alexkunin-gh
alexkunin-gh merged commit 2be5902 into realsenseai: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.

4 participants