[libcamera-devel,11/24] utils: raspberrypi: ctt: Fix pycodestyle E303

Message ID 20200512000322.11753-12-laurent.pinchart@ideasonboard.com
State Accepted
Headers show
Series
  • utils: raspberrypi: ctt: Comply with pycodestyle
Related show

Commit Message

Laurent Pinchart May 12, 2020, 12:03 a.m. UTC
E303 too many blank lines

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
---
 utils/raspberrypi/ctt/ctt.py                 | 2 --
 utils/raspberrypi/ctt/ctt_alsc.py            | 1 -
 utils/raspberrypi/ctt/ctt_macbeth_locator.py | 3 ---
 utils/raspberrypi/ctt/ctt_noise.py           | 1 -
 4 files changed, 7 deletions(-)

Patch

diff --git a/utils/raspberrypi/ctt/ctt.py b/utils/raspberrypi/ctt/ctt.py
index 07230fe3f709..ff264176f040 100755
--- a/utils/raspberrypi/ctt/ctt.py
+++ b/utils/raspberrypi/ctt/ctt.py
@@ -193,7 +193,6 @@  class Camera:
             }
         }
 
-
     """
     Perform colour correction calibrations by comparing macbeth patch colours
     to standard macbeth chart colours.
@@ -770,7 +769,6 @@  def run_ctt(json_output, directory, config, log_output):
     except FileNotFoundError:
         raise ArgError('\n\nError: Input image directory not found!')
 
-
     """
     preform calibrations as long as check_imgs returns True
     If alsc is activated then it must be done before awb and ccm since the alsc
diff --git a/utils/raspberrypi/ctt/ctt_alsc.py b/utils/raspberrypi/ctt/ctt_alsc.py
index e768f8d648a1..b697ed3e22b4 100644
--- a/utils/raspberrypi/ctt/ctt_alsc.py
+++ b/utils/raspberrypi/ctt/ctt_alsc.py
@@ -253,7 +253,6 @@  def get_sigma(Cam, cal_cr_list, cal_cb_list):
     sigma_b = max(sigma_bs) if sigma_bs else 0.005
     Cam.log += '\nMaximum sigmas: Red = {} Blue = {}'.format(sigma_r, sigma_b)
 
-
     # print(sigma_rs, sigma_bs)
     # print(sigma_r, sigma_b)
     return sigma_r, sigma_b
diff --git a/utils/raspberrypi/ctt/ctt_macbeth_locator.py b/utils/raspberrypi/ctt/ctt_macbeth_locator.py
index c3016f9a3c1d..94bbf580db84 100644
--- a/utils/raspberrypi/ctt/ctt_macbeth_locator.py
+++ b/utils/raspberrypi/ctt/ctt_macbeth_locator.py
@@ -144,7 +144,6 @@  def find_macbeth(Cam, img, mac_config=(0, 0)):
                     w_best, h_best = w_inc, h_inc
                     d_best = 1
 
-
     """
     scale 2
     """
@@ -697,7 +696,6 @@  def get_macbeth_chart(img, ref_data):
             Following code is mostly representation for debugging purposes
             """
 
-
         """
         draw macbeth corners and centres on image
         """
@@ -731,7 +729,6 @@  def get_macbeth_chart(img, ref_data):
         # cv2.imshow('Macbeth', best_map_col)
         # represent(copy)
 
-
         """
         rescale coordinates to original image size
         """
diff --git a/utils/raspberrypi/ctt/ctt_noise.py b/utils/raspberrypi/ctt/ctt_noise.py
index 2d021e550f85..ba57f1d1d2c5 100644
--- a/utils/raspberrypi/ctt/ctt_noise.py
+++ b/utils/raspberrypi/ctt/ctt_noise.py
@@ -39,7 +39,6 @@  def noise(Cam, Img, plot):
     means = np.clip(np.array(means), 0, None)
     sq_means = np.sqrt(means)
 
-
     """
     least squares fit model
     """