From 53c5e3cad4999cdcab842e25faf4671f1391d9aa Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 2 Sep 2024 23:23:53 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- .../examples/examples_bayer.ipynb | 33 +++++++++++-------- 1 file changed, 20 insertions(+), 13 deletions(-) diff --git a/colour_demosaicing/examples/examples_bayer.ipynb b/colour_demosaicing/examples/examples_bayer.ipynb index 3968524..1f6df02 100644 --- a/colour_demosaicing/examples/examples_bayer.ipynb +++ b/colour_demosaicing/examples/examples_bayer.ipynb @@ -56,7 +56,8 @@ " demosaicing_CFA_Bayer_bilinear,\n", " demosaicing_CFA_Bayer_Malvar2004,\n", " demosaicing_CFA_Bayer_Menon2007,\n", - " mosaicing_CFA_Bayer)\n", + " mosaicing_CFA_Bayer,\n", + ")\n", "\n", "colour.plotting.colour_style()\n", "\n", @@ -92,11 +93,13 @@ ], "source": [ "LIGHTHOUSE_IMAGE = colour.io.read_image(\n", - " os.path.join(ROOT_RESOURCES_EXAMPLES, 'bayer', 'Lighthouse.exr'))\n", + " os.path.join(ROOT_RESOURCES_EXAMPLES, \"bayer\", \"Lighthouse.exr\")\n", + ")\n", "\n", "colour.plotting.plot_image(\n", " colour.cctf_encoding(LIGHTHOUSE_IMAGE),\n", - " text_kwargs={'text': 'Lighthouse - R914108 - Kodak'});" + " text_kwargs={\"text\": \"Lighthouse - R914108 - Kodak\"},\n", + ");" ] }, { @@ -140,12 +143,13 @@ "CFA = mosaicing_CFA_Bayer(LIGHTHOUSE_IMAGE)\n", "\n", "colour.plotting.plot_image(\n", - " colour.cctf_encoding(CFA),\n", - " text_kwargs={'text': 'Lighthouse - CFA - RGGB'})\n", + " colour.cctf_encoding(CFA), text_kwargs={\"text\": \"Lighthouse - CFA - RGGB\"}\n", + ")\n", "\n", "colour.plotting.plot_image(\n", - " colour.cctf_encoding(mosaicing_CFA_Bayer(LIGHTHOUSE_IMAGE, 'BGGR')), \n", - " text_kwargs={'text': 'Lighthouse - CFA - BGGR'});" + " colour.cctf_encoding(mosaicing_CFA_Bayer(LIGHTHOUSE_IMAGE, \"BGGR\")),\n", + " text_kwargs={\"text\": \"Lighthouse - CFA - BGGR\"},\n", + ");" ] }, { @@ -175,8 +179,9 @@ ], "source": [ "colour.plotting.plot_image(\n", - " colour.cctf_encoding(demosaicing_CFA_Bayer_bilinear(CFA)), \n", - " text_kwargs={'text': 'Lighthouse - Demosaicing - Bilinear'});" + " colour.cctf_encoding(demosaicing_CFA_Bayer_bilinear(CFA)),\n", + " text_kwargs={\"text\": \"Lighthouse - Demosaicing - Bilinear\"},\n", + ");" ] }, { @@ -208,8 +213,9 @@ ], "source": [ "colour.plotting.plot_image(\n", - " colour.cctf_encoding(demosaicing_CFA_Bayer_Malvar2004(CFA)), \n", - " text_kwargs={'text': 'Lighthouse - Demosaicing - Malvar (2004)'});" + " colour.cctf_encoding(demosaicing_CFA_Bayer_Malvar2004(CFA)),\n", + " text_kwargs={\"text\": \"Lighthouse - Demosaicing - Malvar (2004)\"},\n", + ");" ] }, { @@ -239,8 +245,9 @@ ], "source": [ "colour.plotting.plot_image(\n", - " colour.cctf_encoding(demosaicing_CFA_Bayer_Menon2007(CFA)), \n", - " text_kwargs={'text': 'Lighthouse - Demosaicing - Menon (2007)'});" + " colour.cctf_encoding(demosaicing_CFA_Bayer_Menon2007(CFA)),\n", + " text_kwargs={\"text\": \"Lighthouse - Demosaicing - Menon (2007)\"},\n", + ");" ] } ],