Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Apr 4, 2023
1 parent c762399 commit 366a6b5
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,9 @@ implements the aforementioned model with Python:
.. code:: python
>>> import colour_hdri
>>> colour_hdri.saturation_based_speed_focal_plane_exposure(18, 5.6, 0.25, 400)
>>> colour_hdri.saturation_based_speed_focal_plane_exposure(
... 18, 5.6, 0.25, 400
... )
0.46993364546604555
`Colour - Nuke <https://github.com/colour-science/colour-nuke/blob/master/colour_nuke/scripts/digital_still_camera_exposure.nk>`__
Expand Down Expand Up @@ -148,9 +150,13 @@ implements support for absolute luminance calibration with Python:
>>> import numpy as np
>>> RGB = np.ones([2048, 1024, 3])
>>> colour_hdri.upper_hemisphere_illuminance_Lagarde2016(RGB)
>>> colour_hdri.absolute_luminance_calibration_Lagarde2016(RGB, 120000)[0, 0]
>>> colour_hdri.absolute_luminance_calibration_Lagarde2016(RGB, 120000)[
... 0, 0
... ]
array([ 38215.85392444, 38215.85392444, 38215.85392444])
>>> colour_hdri.calibration.absolute_luminance.upper_hemisphere_illuminance_Lagarde2016(RGB)
>>> colour_hdri.calibration.absolute_luminance.upper_hemisphere_illuminance_Lagarde2016(
... RGB
... )
3.1400580564615663
.. class:: alert alert-dismissible alert-info
Expand Down
9 changes: 7 additions & 2 deletions output/posts/the-road-to-stable/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,13 @@ The following example showcases the current implementation, defining metadata fo
V = np.asarray(V)
R_Y = (1.2219 * V - 0.23111 * (V * V) + 0.23951 * (V ** 3) - 0.021009 *
(V ** 4) + 0.0008404 * (V ** 5))
R_Y = (
1.2219 * V
- 0.23111 * (V * V)
+ 0.23951 * (V**3)
- 0.021009 * (V**4)
+ 0.0008404 * (V**5)
)
return R_Y
Expand Down
12 changes: 9 additions & 3 deletions posts/physical-lighting-quantities-tying-both-ends.rst
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,9 @@ implements the aforementioned model with Python:
.. code:: python
>>> import colour_hdri
>>> colour_hdri.saturation_based_speed_focal_plane_exposure(18, 5.6, 0.25, 400)
>>> colour_hdri.saturation_based_speed_focal_plane_exposure(
... 18, 5.6, 0.25, 400
... )
0.46993364546604555
`Colour - Nuke <https://github.com/colour-science/colour-nuke/blob/master/colour_nuke/scripts/digital_still_camera_exposure.nk>`__
Expand Down Expand Up @@ -148,9 +150,13 @@ implements support for absolute luminance calibration with Python:
>>> import numpy as np
>>> RGB = np.ones([2048, 1024, 3])
>>> colour_hdri.upper_hemisphere_illuminance_Lagarde2016(RGB)
>>> colour_hdri.absolute_luminance_calibration_Lagarde2016(RGB, 120000)[0, 0]
>>> colour_hdri.absolute_luminance_calibration_Lagarde2016(RGB, 120000)[
... 0, 0
... ]
array([ 38215.85392444, 38215.85392444, 38215.85392444])
>>> colour_hdri.calibration.absolute_luminance.upper_hemisphere_illuminance_Lagarde2016(RGB)
>>> colour_hdri.calibration.absolute_luminance.upper_hemisphere_illuminance_Lagarde2016(
... RGB
... )
3.1400580564615663
.. class:: alert alert-dismissible alert-info
Expand Down
9 changes: 7 additions & 2 deletions posts/the-road-to-stable.rst
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,13 @@ The following example showcases the current implementation, defining metadata fo
V = np.asarray(V)
R_Y = (1.2219 * V - 0.23111 * (V * V) + 0.23951 * (V ** 3) - 0.021009 *
(V ** 4) + 0.0008404 * (V ** 5))
R_Y = (
1.2219 * V
- 0.23111 * (V * V)
+ 0.23951 * (V**3)
- 0.021009 * (V**4)
+ 0.0008404 * (V**5)
)
return R_Y
Expand Down

0 comments on commit 366a6b5

Please sign in to comment.