Skip to content

Commit

Permalink
Test diagnostic changes
Browse files Browse the repository at this point in the history
  • Loading branch information
braden6521 committed Mar 21, 2024
1 parent 5c3a408 commit f969124
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ubi8.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@ jobs:
run: |
python3 -m pip install -r ../requirements.txt
export PYTHONPATH=$PWD/../
pytest --color=yes -rs -vv --cov=. --cov-report term --cov-config=.coveragerc
pytest --color=yes -rs -vv --cov=. --cov-report term --cov-config=.coveragerc -s -k test_image_points
10 changes: 10 additions & 0 deletions opencsp/app/camera_calibration/test/test_camera_calibration.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,16 @@ def setup_class(cls, regenerate=False):
cls.calibration_error_exp = data['calibration_error']
cls.reprojection_errors_exp = data['reprojection_errors']

print([a.data[:, :2] for a in p_image[:2]])
print('\n')
print(np.array([a.data[:, :2] for a in p_image[:2]]))
print('\n')
print(cls.p_image_points[:2, :2, :2])
# pts_test = cls.p_image_points[:2, :2, :2]
# pts_test_exp = cls.p_image_points_exp[:2, :2, :2]
# print(pts_test_exp)
# print(pts_test)

def test_image_points(self):
np.testing.assert_allclose(self.p_image_points, self.p_image_points_exp)

Expand Down

0 comments on commit f969124

Please sign in to comment.