Skip to content
Snippets Groups Projects
Commit 27e73da0 authored by Matthieu Muller's avatar Matthieu Muller
Browse files

Removed unused check

parent b62cee2c
No related branches found
No related tags found
No related merge requests found
......@@ -71,20 +71,6 @@ def check_data_range(img: np.ndarray) -> None:
raise Exception(f'Pixel\'s values must be in range [0, 1]. Got range [{np.min(img)}, {np.max(img)}].')
def check_len(img1_list: list | np.ndarray, img2_list: list | np.ndarray) -> None:
"""Checks if two lists have the same length.
Args:
img1_list (list | np.ndarray): First list.
img2_list (list | np.ndarray): Secind list.
Raises:
Exception: Exception if the two list do not have the same length.
"""
if len(img1_list) != len(img2_list):
raise Exception(f'The two lists must have the same length. Got {len(img1_list)} and {len(img2_list)}.')
def check_cfa(cfa: str) -> None:
"""Checks if the CFA's name is correct.
......
......@@ -7,7 +7,7 @@ from skimage.metrics import peak_signal_noise_ratio, structural_similarity
from skimage.io import imread, imsave
import numpy as np
from src.checks import check_len, check_data_range, check_rgb, check_shape, check_path, check_png
from src.checks import check_data_range, check_rgb, check_shape, check_path, check_png
def normalise_image(img: np.ndarray) -> np.ndarray:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment