mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-07-04 16:57:32 +08:00
Add flake8-builtins to pre-commit and fix errors (#7105)
Ignore `A003` Co-authored-by: Christian Clauss <cclauss@me.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Dhruv Manilawala <dhruvmanila@gmail.com>
This commit is contained in:
@ -497,9 +497,9 @@ class IndexCalculation:
|
||||
https://www.indexdatabase.de/db/i-single.php?id=77
|
||||
:return: index
|
||||
"""
|
||||
max = np.max([np.max(self.red), np.max(self.green), np.max(self.blue)])
|
||||
min = np.min([np.min(self.red), np.min(self.green), np.min(self.blue)])
|
||||
return (max - min) / max
|
||||
max_value = np.max([np.max(self.red), np.max(self.green), np.max(self.blue)])
|
||||
min_value = np.min([np.min(self.red), np.min(self.green), np.min(self.blue)])
|
||||
return (max_value - min_value) / max_value
|
||||
|
||||
def _if(self):
|
||||
"""
|
||||
|
Reference in New Issue
Block a user