From e89f29fcbaa7c7e31229dd2f45fcce234a38cc59 Mon Sep 17 00:00:00 2001 From: Setsugennoao <41454651+Setsugennoao@users.noreply.github.com> Date: Sun, 15 Oct 2023 12:53:04 +0200 Subject: [PATCH] Fix typo --- vskernels/util.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/vskernels/util.py b/vskernels/util.py index ab8c4a8..6212989 100644 --- a/vskernels/util.py +++ b/vskernels/util.py @@ -164,16 +164,16 @@ def __enter__(self) -> LinearLightProcessing: if self.sigmoid is True: self.sigmoid = (6.5, 0.75) - sslope, scenter = self.sigmoid + self._sslope, self._scenter = self.sigmoid - if 1.0 > sslope or sslope > 20.0: + if 1.0 > self._sslope or self._sslope > 20.0: raise CustomValueError('sigmoid slope has to be in range 1.0-20.0 (inclusive).', self.__class__) - if 0.0 > scenter or scenter > 1.0: + if 0.0 > self._scenter or self._scenter > 1.0: raise CustomValueError('sigmoid center has to be in range 0.0-1.0 (inclusive).', self.__class__) - self._soffset = 1.0 / (1 + exp(sslope * scenter)) - self._sscale = 1.0 / (1 + exp(sslope * (scenter - 1))) - self._soffset + self._soffset = 1.0 / (1 + exp(self._sslope * self._scenter)) + self._sscale = 1.0 / (1 + exp(self._sslope * (self._scenter - 1))) - self._soffset self._fmt = self.clip.format assert self._fmt