Skip to content

Commit 30b3afa

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 8c1accd commit 30b3afa

File tree

4 files changed

+32
-10
lines changed

4 files changed

+32
-10
lines changed

output/posts/physical-lighting-quantities-tying-both-ends/index.rst

+9-3
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,9 @@ implements the aforementioned model with Python:
9696
.. code:: python
9797
9898
>>> import colour_hdri
99-
>>> colour_hdri.saturation_based_speed_focal_plane_exposure(18, 5.6, 0.25, 400)
99+
>>> colour_hdri.saturation_based_speed_focal_plane_exposure(
100+
... 18, 5.6, 0.25, 400
101+
... )
100102
0.46993364546604555
101103
102104
`Colour - Nuke <https://github.com/colour-science/colour-nuke/blob/master/colour_nuke/scripts/digital_still_camera_exposure.nk>`__
@@ -148,9 +150,13 @@ implements support for absolute luminance calibration with Python:
148150
>>> import numpy as np
149151
>>> RGB = np.ones([2048, 1024, 3])
150152
>>> colour_hdri.upper_hemisphere_illuminance_Lagarde2016(RGB)
151-
>>> colour_hdri.absolute_luminance_calibration_Lagarde2016(RGB, 120000)[0, 0]
153+
>>> colour_hdri.absolute_luminance_calibration_Lagarde2016(RGB, 120000)[
154+
... 0, 0
155+
... ]
152156
array([ 38215.85392444, 38215.85392444, 38215.85392444])
153-
>>> colour_hdri.calibration.absolute_luminance.upper_hemisphere_illuminance_Lagarde2016(RGB)
157+
>>> colour_hdri.calibration.absolute_luminance.upper_hemisphere_illuminance_Lagarde2016(
158+
... RGB
159+
... )
154160
3.1400580564615663
155161
156162
.. class:: alert alert-dismissible alert-info

output/posts/the-road-to-stable/index.rst

+7-2
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,13 @@ The following example showcases the current implementation, defining metadata fo
5656
5757
V = np.asarray(V)
5858
59-
R_Y = (1.2219 * V - 0.23111 * (V * V) + 0.23951 * (V ** 3) - 0.021009 *
60-
(V ** 4) + 0.0008404 * (V ** 5))
59+
R_Y = (
60+
1.2219 * V
61+
- 0.23111 * (V * V)
62+
+ 0.23951 * (V**3)
63+
- 0.021009 * (V**4)
64+
+ 0.0008404 * (V**5)
65+
)
6166
6267
return R_Y
6368

posts/physical-lighting-quantities-tying-both-ends.rst

+9-3
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,9 @@ implements the aforementioned model with Python:
9696
.. code:: python
9797
9898
>>> import colour_hdri
99-
>>> colour_hdri.saturation_based_speed_focal_plane_exposure(18, 5.6, 0.25, 400)
99+
>>> colour_hdri.saturation_based_speed_focal_plane_exposure(
100+
... 18, 5.6, 0.25, 400
101+
... )
100102
0.46993364546604555
101103
102104
`Colour - Nuke <https://github.com/colour-science/colour-nuke/blob/master/colour_nuke/scripts/digital_still_camera_exposure.nk>`__
@@ -148,9 +150,13 @@ implements support for absolute luminance calibration with Python:
148150
>>> import numpy as np
149151
>>> RGB = np.ones([2048, 1024, 3])
150152
>>> colour_hdri.upper_hemisphere_illuminance_Lagarde2016(RGB)
151-
>>> colour_hdri.absolute_luminance_calibration_Lagarde2016(RGB, 120000)[0, 0]
153+
>>> colour_hdri.absolute_luminance_calibration_Lagarde2016(RGB, 120000)[
154+
... 0, 0
155+
... ]
152156
array([ 38215.85392444, 38215.85392444, 38215.85392444])
153-
>>> colour_hdri.calibration.absolute_luminance.upper_hemisphere_illuminance_Lagarde2016(RGB)
157+
>>> colour_hdri.calibration.absolute_luminance.upper_hemisphere_illuminance_Lagarde2016(
158+
... RGB
159+
... )
154160
3.1400580564615663
155161
156162
.. class:: alert alert-dismissible alert-info

posts/the-road-to-stable.rst

+7-2
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,13 @@ The following example showcases the current implementation, defining metadata fo
5656
5757
V = np.asarray(V)
5858
59-
R_Y = (1.2219 * V - 0.23111 * (V * V) + 0.23951 * (V ** 3) - 0.021009 *
60-
(V ** 4) + 0.0008404 * (V ** 5))
59+
R_Y = (
60+
1.2219 * V
61+
- 0.23111 * (V * V)
62+
+ 0.23951 * (V**3)
63+
- 0.021009 * (V**4)
64+
+ 0.0008404 * (V**5)
65+
)
6166
6267
return R_Y
6368

0 commit comments

Comments
 (0)