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 Jan 21, 2025
1 parent 8af1c96 commit 5839474
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 17 deletions.
3 changes: 1 addition & 2 deletions colour_hdri/network/graphs.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
super().__init__(*args, **kwargs)

self.description = (
'Process given raw file, e.g., "CR2", "CR3", "NEF", using the'
'"DNG" method'
'Process given raw file, e.g., "CR2", "CR3", "NEF", using the"DNG" method'
)

self.add_input_port("index")
Expand Down
11 changes: 4 additions & 7 deletions colour_hdri/network/nodes.py
Original file line number Diff line number Diff line change
Expand Up @@ -572,7 +572,7 @@ def process(self, **kwargs: Any) -> None: # noqa: ARG002
if self.get_input("include_exposure_information"):
text += (
" - "
f"{exif_group['Exposure Time']:.6f}\" "
f'{exif_group["Exposure Time"]:.6f}" '
f"f{exif_group['F Number']} "
f"{exif_group['ISO']}"
)
Expand Down Expand Up @@ -752,8 +752,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
super().__init__(*args, **kwargs)

self.description = (
"Compute the input transform from the input metadata using the "
'"DNG" method'
'Compute the input transform from the input metadata using the "DNG" method'
)

self.add_input_port("metadata")
Expand Down Expand Up @@ -1150,8 +1149,7 @@ def process(self, **kwargs: Any) -> None: # noqa: ARG002
self.log("Lens vignette was successfully corrected!")
else:
self.log(
"Lens vignette was not corrected, "
"the lens might be missing data."
"Lens vignette was not corrected, the lens might be missing data."
)

if self.get_input("correct_chromatic_aberration"):
Expand Down Expand Up @@ -1198,8 +1196,7 @@ def process(self, **kwargs: Any) -> None: # noqa: ARG002
self.log("Lens distortion was successfully corrected!")
else:
self.log(
"Lens distortion was not corrected, "
"the lens might be missing data."
"Lens distortion was not corrected, the lens might be missing data."
)

self.set_output("output_image", output_image)
Expand Down
2 changes: 1 addition & 1 deletion colour_hdri/sampling/variance_minimization.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ def light_probe_sampling_variance_minimization_Viriyothai2009(
iterations = np.sqrt(lights_count).astype(np.int_)
if iterations**2 != lights_count:
warning(
f"{lights_count} lights requested, {iterations ** 2} will be "
f"{lights_count} lights requested, {iterations**2} will be "
f"effectively computed!"
)

Expand Down
3 changes: 1 addition & 2 deletions colour_hdri/utilities/image.py
Original file line number Diff line number Diff line change
Expand Up @@ -306,8 +306,7 @@ def read_metadata(self) -> Metadata:

if not exif_data.get("EXIF"):
warning(
f'"{self._path}" file has no "Exif" data, metadata will '
f"be undefined!"
f'"{self._path}" file has no "Exif" data, metadata will be undefined!'
)
self.metadata = Metadata(*[None] * 6)
return self.metadata
Expand Down
6 changes: 1 addition & 5 deletions colour_hdri/utilities/tests/test_exif.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,11 +120,7 @@ def test_parse_exif_array(self) -> None:
exif_tag = EXIFTag(
"EXIF",
"Color Matrix 1",
(
"0.5309 -0.0229 -0.0336 "
"-0.6241 1.3265 0.3337 "
"-0.0817 0.1215 0.6664"
),
("0.5309 -0.0229 -0.0336 -0.6241 1.3265 0.3337 -0.0817 0.1215 0.6664"),
"50721",
)
np.testing.assert_array_equal(
Expand Down

0 comments on commit 5839474

Please sign in to comment.