From d458295658f71b31047b2b1220b61cb566f374b7 Mon Sep 17 00:00:00 2001 From: emotion3459 <176516814+emotion3459@users.noreply.github.com> Date: Sun, 15 Dec 2024 12:17:52 -0500 Subject: [PATCH] remove esl --- vsdenoise/mvtools/motion.py | 4 ++-- vsdenoise/mvtools/mvtools.py | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/vsdenoise/mvtools/motion.py b/vsdenoise/mvtools/motion.py index 050d864..4c4d380 100644 --- a/vsdenoise/mvtools/motion.py +++ b/vsdenoise/mvtools/motion.py @@ -31,14 +31,14 @@ def _init_vects(self) -> None: self.temporal_vectors = {w: {} for w in MVDirection} @property - def got_vectors(self) -> bool: + def has_vectors(self) -> bool: """Whether the instance uses bidirectional motion vectors.""" return bool( (self.temporal_vectors[MVDirection.BACK] and self.temporal_vectors[MVDirection.FWRD]) or self.vmulti ) - def got_mv(self, direction: MVDirection, delta: int) -> bool: + def has_mv(self, direction: MVDirection, delta: int) -> bool: """ Returns whether the motion vector exists. diff --git a/vsdenoise/mvtools/mvtools.py b/vsdenoise/mvtools/mvtools.py index 1ed8c5e..1f01af2 100644 --- a/vsdenoise/mvtools/mvtools.py +++ b/vsdenoise/mvtools/mvtools.py @@ -461,7 +461,7 @@ def recalculate( elif vectors is None: vectors = self.vectors - if not vectors.got_vectors: + if not vectors.has_vectors: raise CustomRuntimeError('You need to first run analyze before recalculating!', self.recalculate) tr = fallback(tr, self.tr) @@ -514,7 +514,7 @@ def recalculate( ) else: for i in range(1, t2 + 1): - if not vectors.got_mv(MVDirection.BACK, i) or not vectors.got_mv(MVDirection.FWRD, i): + if not vectors.has_mv(MVDirection.BACK, i) or not vectors.has_mv(MVDirection.FWRD, i): continue for j in range(0, refine): @@ -951,7 +951,7 @@ def get_vectors_bf( :return: Two lists, respectively for backward and forwards, containing motion vectors. """ - if not vectors.got_vectors: + if not vectors.has_vectors: vectors = self.analyze(supers=supers, ref=ref, inplace=inplace) t2 = (self.tr * 2 if self.tr > 1 else self.tr) if self.source_type.is_inter else self.tr