From a0d45447304dd19958f85a1a294956b124932c0a Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 2 Feb 2024 07:54:59 +0100 Subject: [PATCH] [pre-commit.ci] pre-commit autoupdate (#176) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * [pre-commit.ci] pre-commit autoupdate updates: - [github.com/psf/black: 23.11.0 → 24.1.1](https://github.com/psf/black/compare/23.11.0...24.1.1) - [github.com/igorshubovych/markdownlint-cli: v0.37.0 → v0.39.0](https://github.com/igorshubovych/markdownlint-cli/compare/v0.37.0...v0.39.0) - [github.com/pycqa/flake8: 6.1.0 → 7.0.0](https://github.com/pycqa/flake8/compare/6.1.0...7.0.0) - [github.com/PyCQA/isort: 5.12.0 → 5.13.2](https://github.com/PyCQA/isort/compare/5.12.0...5.13.2) * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- .pre-commit-config.yaml | 8 ++++---- stitching/exposure_error_compensator.py | 6 +++--- stitching/subsetter.py | 8 +++++--- 3 files changed, 12 insertions(+), 10 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 55b8252..dd5f977 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -13,22 +13,22 @@ repos: - id: mixed-line-ending - id: check-added-large-files - repo: https://github.com/psf/black - rev: 23.11.0 + rev: 24.1.1 hooks: - id: black - repo: https://github.com/igorshubovych/markdownlint-cli - rev: v0.37.0 + rev: v0.39.0 hooks: - id: markdownlint - repo: https://github.com/pycqa/flake8 - rev: 6.1.0 + rev: 7.0.0 hooks: - id: flake8 args: - "--max-line-length=88" - "--ignore=E203" - repo: https://github.com/PyCQA/isort - rev: 5.12.0 + rev: 5.13.2 hooks: - id: isort args: diff --git a/stitching/exposure_error_compensator.py b/stitching/exposure_error_compensator.py index 166cefe..7698042 100644 --- a/stitching/exposure_error_compensator.py +++ b/stitching/exposure_error_compensator.py @@ -10,9 +10,9 @@ class ExposureErrorCompensator: COMPENSATOR_CHOICES["gain_blocks"] = cv.detail.ExposureCompensator_GAIN_BLOCKS COMPENSATOR_CHOICES["gain"] = cv.detail.ExposureCompensator_GAIN COMPENSATOR_CHOICES["channel"] = cv.detail.ExposureCompensator_CHANNELS - COMPENSATOR_CHOICES[ - "channel_blocks" - ] = cv.detail.ExposureCompensator_CHANNELS_BLOCKS + COMPENSATOR_CHOICES["channel_blocks"] = ( + cv.detail.ExposureCompensator_CHANNELS_BLOCKS + ) COMPENSATOR_CHOICES["no"] = cv.detail.ExposureCompensator_NO DEFAULT_COMPENSATOR = list(COMPENSATOR_CHOICES.keys())[0] diff --git a/stitching/subsetter.py b/stitching/subsetter.py index ead26b4..08e46b1 100644 --- a/stitching/subsetter.py +++ b/stitching/subsetter.py @@ -49,9 +49,11 @@ def get_matches_graph(self, img_names, pairwise_matches): return cv.detail.matchesGraphAsString( img_names, pairwise_matches, - 0.00001 # see issue #56 - if (self.confidence_threshold == 0) - else self.confidence_threshold, + ( + 0.00001 # see issue #56 + if (self.confidence_threshold == 0) + else self.confidence_threshold + ), ) def get_indices_to_keep(self, features, pairwise_matches):