Skip to content

Commit

Permalink
Merge branch 'feature/v0.2.1' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
KelSolaar committed Apr 8, 2024
2 parents 2e2d09f + dac8c38 commit 4645a20
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions colour_checker_detection/detection/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ def reformat_image(
Examples
--------
>>> image = np.arange(24).reshape([2, 4, 3])
>>> image = np.reshape(np.arange(24), (2, 4, 3))
>>> image # doctest: +ELLIPSIS
array([[[ 0, 1, 2],
[ 3, 4, 5],
Expand Down Expand Up @@ -480,7 +480,7 @@ def transform_image(
Examples
--------
>>> image = np.arange(24).reshape([2, 4, 3])
>>> image = np.reshape(np.arange(24), (2, 4, 3))
>>> image # doctest: +ELLIPSIS
array([[[ 0, 1, 2],
[ 3, 4, 5],
Expand Down
2 changes: 1 addition & 1 deletion colour_checker_detection/detection/tests/test_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ def test_transform_image(self):
definition unit tests methods.
"""

image = as_float32_array(np.arange(96)).reshape([4, 8, 3])
image = np.reshape(as_float32_array(np.arange(96)), (4, 8, 3))

np.testing.assert_allclose(
transform_image(image, np.array([2, 4]), 45, np.array([2, 3])),
Expand Down

0 comments on commit 4645a20

Please sign in to comment.