diff --git a/colour_hdri/network/graphs.py b/colour_hdri/network/graphs.py index 6e310d8..d0f2a61 100644 --- a/colour_hdri/network/graphs.py +++ b/colour_hdri/network/graphs.py @@ -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") diff --git a/colour_hdri/network/nodes.py b/colour_hdri/network/nodes.py index 714a2b9..25fd9a3 100644 --- a/colour_hdri/network/nodes.py +++ b/colour_hdri/network/nodes.py @@ -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']}" ) @@ -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") @@ -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"): @@ -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) diff --git a/colour_hdri/sampling/variance_minimization.py b/colour_hdri/sampling/variance_minimization.py index 90c4059..d5a1507 100644 --- a/colour_hdri/sampling/variance_minimization.py +++ b/colour_hdri/sampling/variance_minimization.py @@ -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!" ) diff --git a/colour_hdri/utilities/image.py b/colour_hdri/utilities/image.py index 839ab97..3f2edc1 100644 --- a/colour_hdri/utilities/image.py +++ b/colour_hdri/utilities/image.py @@ -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 diff --git a/colour_hdri/utilities/tests/test_exif.py b/colour_hdri/utilities/tests/test_exif.py index 0265f46..9413174 100644 --- a/colour_hdri/utilities/tests/test_exif.py +++ b/colour_hdri/utilities/tests/test_exif.py @@ -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(